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.
|
# {{ ansible_managed }}
|
|
|
|
[Unit]
|
|
Description=Seafile
|
|
After=network.target {% if seafile_backend != 'sqlite' and seafile_db_host == '127.0.0.1' %} {{ seafile_backend }}.service {% endif %}
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStart={{ seafile_org_dir }}/seafile-server-latest/seafile.sh restart
|
|
ExecStop={{ seafile_org_dir }}/seafile-server-latest/seafile.sh stop
|
|
RemainAfterExit=yes
|
|
User={{ seafile_user }}
|
|
Group=seafile
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|