mirror of
https://github.com/BillDietrich/lanwatch.git
synced 2025-04-11 20:23:38 +02:00
25 lines
774 B
SYSTEMD
25 lines
774 B
SYSTEMD
#--------------------------------------------------------------------------------------------------
|
|
# lanwatch.service Run lanwatch.py when system starts, after network is up.
|
|
# Put this file in /etc/systemd/system
|
|
|
|
# Copyright Bill Dietrich 2020
|
|
|
|
#--------------------------------------------------------------------------------------------------
|
|
|
|
[Unit]
|
|
Description=LANWatch
|
|
# would like this to start ASAP, but I think running before "online" causes problems ?
|
|
After=network-online.target
|
|
#After=network.target
|
|
Before=graphical.target
|
|
Before=multi-user.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
ExecStart=/usr/local/bin/lanwatch.py
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|
|
#--------------------------------------------------------------------------------------------------
|