2024-01-05 17:43:08 +01:00
|
|
|
[Unit]
|
|
|
|
Description=Seafile
|
|
|
|
# add mysql.service or postgresql.service depending on your database to the line below
|
2024-01-05 17:43:08 +01:00
|
|
|
After=network.target mysql.target
|
2024-01-05 17:43:08 +01:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
|
|
|
ExecStart=/usr/share/seafile/seafile-server/seafile.sh start
|
|
|
|
ExecStop=/usr/share/seafile/seafile-server/seafile.sh stop
|
|
|
|
RemainAfterExit=yes
|
|
|
|
User=seafile
|
|
|
|
Group=seafile
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|