Skip to content

Instantly share code, notes, and snippets.

@miry
Created May 20, 2015 18:12
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save miry/b027edccce70254a6258 to your computer and use it in GitHub Desktop.
Save miry/b027edccce70254a6258 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