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.
|
|
|
[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 {{ seafile_seahub_fastcgi | ternary('start-fastcgi','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
|