mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-06 08:36:55 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
22
roles/seafile/templates/seahub.service.j2
Normal file
22
roles/seafile/templates/seahub.service.j2
Normal file
@@ -0,0 +1,22 @@
|
||||
[Unit]
|
||||
Description=Seafile hub
|
||||
After=network.target seafile.service
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
Environment=PYTHONPATH={{ seafile_root_dir }}/lib64/python3.6/site-packages/
|
||||
Environment=PYTHON={{ seafile_root_dir }}/bin/python
|
||||
ExecStart={{ seafile_root_dir }}/seafile-server/seahub.sh start {{ seafile_seahub_port }}
|
||||
ExecStop={{ seafile_root_dir }}/seafile-server/seahub.sh stop
|
||||
User={{ seafile_user }}
|
||||
Group={{ seafile_group }}
|
||||
PrivateDevices=yes
|
||||
ProtectSystem=full
|
||||
ProtectHome=yes
|
||||
NoNewPrivileges=yes
|
||||
SyslogIdentifier=seahub
|
||||
StartLimitInterval=0
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Reference in New Issue
Block a user