[root@localhost system]# cat btsync.service [Unit] Description=BTSync After=network.target [Service] User=nemo ExecStart=/home/nemo/btsync [Install] WantedBy=multi-user.target
systemctl enable btsync.service
systemctl enable btsync.service
[root@localhost system]# systemctl status btsync.service
btsync.service - BitTorrent Sync application
Loaded: loaded (/lib/systemd/system/btsync.service; disabled)
Active: active (running) since Sat, 25 Jan 2014 21:55:40 +0600; 1s ago
Process: 9964 ExecStart=/usr/local/bin/btsync --config %h/.config/btsync/btsync.config (code=exited, status=0/SUCCESS)
Main PID: 9971 (btsync)
CGroup: name=systemd:/system/btsync.service
└ 9971 /usr/local/bin/btsync --config /home/nemo/.config/btsync/btsync.config
[root@localhost system]# cat /lib/systemd/system/btsync.service
[Unit]
Description=BitTorrent Sync application
After=network.target
[Service]
Type=forking
User=nemo
ExecStart=/usr/local/bin/btsync --config %h/.config/btsync/btsync.config
PIDFile=%h/.config/btsync/sync.pid
[Install]
WantedBy=multi-user.target