Reply
Thread Tools
Posts: 7 | Thanked: 1 time | Joined on Dec 2013 @ Finland
#1
I installed btsync to my phone, it runs fine but can't get it starting with systemd.
Code:
[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 start btsync.service doesn't give any error.

Last edited by iltsu; 2014-01-02 at 02:51.
 
Posts: 1 | Thanked: 0 times | Joined on Jan 2014
#2
What does systemctl status btsync.service say?
 
kimmoli's Avatar
Posts: 562 | Thanked: 2,744 times | Joined on Dec 2013 @ Espoo, Finland
#3
To autostart at boot
Code:
systemctl enable btsync.service
 
Posts: 7 | Thanked: 1 time | Joined on Dec 2013 @ Finland
#4
Originally Posted by kimmoli View Post
To autostart at boot
Code:
systemctl enable btsync.service
Well, it doesn't still work. I think there is something wrong with that script.
 
Posts: 6 | Thanked: 3 times | Joined on Mar 2010 @ Russia
#5
Code:
[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
PIDFile must be the same as pid_file in btsync.config or storage_path in btsync.config must be "/home/nemo/.config/btsync".
# systemctl enable btsync.service
also works fine.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 09:41.