Skip to content

Instantly share code, notes, and snippets.

@contropist
Created December 12, 2018 08:36
Show Gist options
  • Save contropist/e749705314eaab79df9a49bba7d20e36 to your computer and use it in GitHub Desktop.
Save contropist/e749705314eaab79df9a49bba7d20e36 to your computer and use it in GitHub Desktop.
seafile-client.service
[Unit]
Description=Seafile client
# Uncomment the next line you are running seafile client on the same computer as server
# After=seafile.service
# Or the next one in other case
# After=network.target
[Service]
Type=oneshot
ExecStart=/usr/bin/seaf-cli start
ExecStop=/usr/bin/seaf-cli 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