Thread
:
[WIP] Prey - antitheft system
View Single Post
nieldk
2015-03-07 , 19:10
Posts: 1,297 | Thanked: 4,322 times | Joined on Oct 2014
#
142
Now. Create a system service
$ devel-su
# nano -w /etc/systemd/system/prey-agent.service
[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 start it
# systemctl start prey-agent
Enable it on boot
# systemctl enable prey-agent
__________________
You can still support my work by donation - click here
Quote & Reply
|
nieldk
View Public Profile
Send a private message to nieldk
Find all posts by nieldk