You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
root 6d117f5203 fixed readme 3 years ago
README.md fixed readme 3 years ago
scanner.py init repo 3 years ago
server.py init repo 3 years ago
settings.json.sample init repo 3 years ago

README.md

[Unit]
Description=My Python Server
After=syslog.target

[Service]
Type=simple
User=addressserver
Group=addressserver
WorkingDirectory=/home/addressserver/address_scanner
ExecStart=/usr/bin/python3 /home/addressserver/address_scanner/server.py
SyslogIdentifier=address_server
StandardOutput=syslog
StandardError=syslog
Restart=always
RestartSec=3

[Install]
WantedBy=multi-user.target
apt-get install python3-pip
pip3 install netifaces paho-mqtt

*/2 * * * * /usr/bin/python3 /root/scanner.py -i eth0 -4 192 -6 2a02 --host 192.168.25.221 --username mc8051 --password XXXXXXX -q

https://www.thomaschristlieb.de/ein-python-script-mit-systemd-als-daemon-systemd-tut-garnicht-weh/
https://stackoverflow.com/a/47370156