Skip to content

Instantly share code, notes, and snippets.

@antelio
Forked from miry/btsync.service
Last active March 19, 2018 13:43
Show Gist options
  • Save antelio/81b8057390f3a7ce8b497c967e30490b to your computer and use it in GitHub Desktop.
Save antelio/81b8057390f3a7ce8b497c967e30490b to your computer and use it in GitHub Desktop.
Simple Systemd services for my local server
# create /etc/systemd/system/btsync.service
# systemctl start btsync.service
# systemctl status btsync.service
# systemctl enable btsync.service
[Unit]
Description=BTSync daemon
[Service]
#Type=forking
PIDFile=/run/btsync/btsync.pid
ExecStart=/usr/local/bin/btsync --config /usr/local/etc/btsync.conf
[Install]
WantedBy=multi-user.target
# create /etc/systemd/system/noip2.service
# systemctl start noip2.service
# systemctl status noip2.service
# systemctl enable noip2.service
[Unit]
Description=NOIp Dynamic ip
[Service]
ExecStart=/usr/local/bin/noip2
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment