diff --git a/watcher.service b/watcher.service new file mode 100644 index 0000000..ecbd830 --- /dev/null +++ b/watcher.service @@ -0,0 +1,15 @@ +[Unit] +Description=Watcher +Wants=network-online.target +After=network.target network-online.target + +[Service] +Type=simple +User=root +Environment=XAUTHORITY=/home/jd/.Xauthority +Environment=DISPLAY=:0 +#ExecStartPre=/bin/sleep 30 +ExecStart=/usr/bin/watcher.sh > /dev/null 2>&1 & + +[Install] +WantedBy=multi-user.target suspend.target hibernate.target hybrid-sleep.target suspend-then-hibernate.target