Skip to content

Instantly share code, notes, and snippets.

@contropist
Created December 12, 2018 08:34
Show Gist options
  • Save contropist/939a8ba5540b225bf919f07c15ca0935 to your computer and use it in GitHub Desktop.
Save contropist/939a8ba5540b225bf919f07c15ca0935 to your computer and use it in GitHub Desktop.
seafile.service
[Unit]
Description=Seafile
# add mysql.service or postgresql.service depending on your database to the line below
After=network.target
[Service]
Type=oneshot
ExecStart=/seafile/seafile-server-latest/seafile.sh start
ExecStop=/seafile/seafile-server-latest/seafile.sh stop
RemainAfterExit=yes
User=root
Group=root
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment