ghost/templates/systemd.service.j2

18 lines
355 B
Plaintext
Raw Normal View History

2021-01-24 16:49:42 +01:00
[Unit]
Description=Ghost blog for {{ item.name }}
After=network.target
2022-05-02 17:48:54 +02:00
After=mariadb.service
2021-01-24 16:49:42 +01:00
[Service]
Type=simple
User={{ item.account }}
2022-05-02 17:48:54 +02:00
WorkingDirectory={{ item.home }}
2021-01-24 16:49:42 +01:00
Environment="NODE_ENV=production"
2022-05-02 17:48:54 +02:00
ExecStart=/opt/{{ item.home }}/node_modules/.bin/ghost run --dir www
2021-01-24 16:49:42 +01:00
TimeoutSec=15
Restart=always
[Install]
WantedBy=multi-user.target