aboutsummaryrefslogtreecommitdiffstats
path: root/roles/photostructure/templates/etc/systemd/system/photostructure.service.j2
blob: 67700c370984e940cb1ad727fb82d29459cc65a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[Unit]
Description=PhotoStructure for Servers
Documentation=https://photostructure.com/servers/
Requires=network.target nss-user-lookup.target autofs.service
After=network.target nss-user-lookup.target autofs.service

[Service]
User={{ photostructure_user }}
Group={{ photostructure_user }}
EnvironmentFile=/etc/sysconfig/photostructure
WorkingDirectory={{ photostructure_install_dir }}
ExecStart=/usr/bin/node ./photostructure
Type=simple
Restart=on-failure
TimeoutSec=2min
PrivateTmp=true

[Install]
WantedBy=multi-user.target