View Single Post
Posts: 1,297 | Thanked: 4,322 times | Joined on Oct 2014
#111
Originally Posted by J4ZZ View Post
Brilliant, thanks a lot.

How about the prey service, do I need to make one myself?
It will add /etc/systemd/system/prey-agent.service

which should contain

Code:
[Unit]
Description=The Prey daemon.
After=network.target

[Service]
ExecStart=/usr/lib/node_modules/prey/bin/prey

WorkingDirectory=/usr/lib/node_modules/prey

Restart=always

RestartSec=15

User=prey

Environment="TERM=dumb" "USER=prey" 

KillMode=process

TimeoutStopSec=20

KillSignal=QUIT

[Install]
WantedBy=multi-user.target
and should be enabled by restart (systemctl enable prey-agent.service if not)
 

The Following User Says Thank You to nieldk For This Useful Post: