Skip to content

Instantly share code, notes, and snippets.

@ph20
Created December 26, 2023 19:11
Show Gist options
  • Save ph20/d94951ba302ba5194c99f67dcc088ab8 to your computer and use it in GitHub Desktop.
Save ph20/d94951ba302ba5194c99f67dcc088ab8 to your computer and use it in GitHub Desktop.
workable seafile systemd config /etc/systemd/system/seafile.service
[Unit]
Description=Seafile
# add mysql.service or postgresql.service depending on your database to the line below
After=network.target
After=mysql.service
Requires=mysql.service
[Service]
Type=forking
ExecStart=/opt/seafilepro/seafile-server-latest/seafile.sh start
ExecStop=/opt/seafilepro/seafile-server-latest/seafile.sh stop
LimitNOFILE=infinity
User=seafilepro
Group=seafilepro
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment