You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
520 B
22 lines
520 B
[Unit]
|
|
Description=Seafile
|
|
After=network.target mariadb.service
|
|
|
|
[Service]
|
|
Type=forking
|
|
Environment=PATH={{ seafile_root_dir }}/bin:/bin:/usr/bin
|
|
ExecStart={{ seafile_root_dir }}/seafile-server/seafile.sh start
|
|
ExecStop={{ seafile_root_dir }}/seafile-server-latest/seafile.sh stop
|
|
User={{ seafile_user }}
|
|
Group={{ seafile_group }}
|
|
PrivateDevices=yes
|
|
ProtectSystem=full
|
|
ProtectHome=yes
|
|
NoNewPrivileges=yes
|
|
SyslogIdentifier=seafile
|
|
StartLimitInterval=0
|
|
RestartSec=5
|
|
LimitNOFILE=65536
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|