Skip to content

Simple Python script to keep track of my internet providers BS

Notifications You must be signed in to change notification settings

securitymonster/upordown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Quick notes for setting up on raspberry PI


# SYSTEM SERVICE on Raspberry
/etc/systemd/system/upordown.service:

# start of file
[Unit]
Description=Seb's Up Or Not Script
After=multi-user.target

[Service]
Type=idle
ExecStart=/usr/bin/python3 /usr/local/bin
Restart=always

[Install]
WantedBy=multi-user.target
# end of file

sudo systemctl daemon-reload
sudo systemctl enable upornot
sudo systemctl start upornot


# LOGROTATE on Raspberry
Assuming logrotate is configure in cron somewhere, for instance in /etc/cron.daily/logrotate.

/etc/logrotate.d/updown:

# start of file
/var/log/upordown.csv {
    daily
    rotate 7
    compress
    delaycompress
    missingok
    notifempty
    create 640 pi pi
}
# end of file

Test with:

sudo logrotate -vf /etc/logrotate.d/updown



About

Simple Python script to keep track of my internet providers BS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages