File: /volume1/@appstore/WebStation/misc/pkg-WebStation-python@.service.mustache
[Unit]
Description=WebStation {{package_name}} uwsgi process
After=pkgctl-WebStation.service
PartOf=pkgctl-WebStation.service
ConditionPathExists=/var/packages/WebStation/enabled
IgnoreOnIsolate=true
DefaultDependencies=no
[Service]
Type=simple
ExecStartPre=/var/packages/WebStation/target/tools/webstation_systemd_service_tool.sh pkg-WebStation-python ExecStartPre
ExecStart={{uwsgi_path}} \
--emperor /usr/syno/etc/packages/WebStation/python_profile/%i/vassals \
--vassals-include /usr/syno/etc/packages/WebStation/python_profile/%i/emperor.ini
ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure
Slice=syno_dsm_internal.slice
[Install]
WantedBy=pkgctl-WebStation.service
[X-Synology]
Name=WebStation {{package_name}} fpm process