You are not logged in.

#1 2012-12-16 14:05:45

Tae
Member
Registered: 2010-08-31
Posts: 32

Writing a prey.timer

Hi:

I'm trying to write a systemd timer to run Prey. I wrote:

prey.service:

[Unit]
Description=Open source anti-theft solution for laptops, phones & tablets.

[Service]
ExecStart=/usr/share/prey-tracker/prey.sh

prey.timer:

[Unit]
Description=Open source anti-theft solution for laptops, phones & tablets.

[Timer]
OnStartupSec=5min
OnUnitActiveSec=1h

[Install]
WantedBy=basic.target

It seems to work, but I'm in doubt about the [Install] section. There's a network.target. Does it mean that If I replace basic.target with network.target the timer will start running when the systems has network connection? If that is the case, can I remove the OnStartupSec=5min line?

Offline

Board footer

Powered by FluxBB