2021-12-01 19:13:34 +01:00
|
|
|
[Unit]
|
|
|
|
Description=Seafile
|
2022-01-25 15:00:05 +01:00
|
|
|
After=network.target mariadb.service elasticsearch.service
|
2021-12-01 19:13:34 +01:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=forking
|
|
|
|
Environment=PATH={{ seafile_root_dir }}/bin:/bin:/usr/bin
|
2023-06-16 18:00:09 +02:00
|
|
|
Environment=PYTHONPATH={{ seafile_root_dir }}/lib64/python3.9/site-packages/
|
2021-12-01 19:13:34 +01:00
|
|
|
Environment=PYTHON={{ seafile_root_dir }}/bin/python
|
|
|
|
ExecStart={{ seafile_root_dir }}/seafile-server/seafile.sh start
|
|
|
|
ExecStop={{ seafile_root_dir }}/seafile-server/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
|