Systemd - Configuration
# Place in /etc/systemd/system/ghost.service
[Unit]
Description=Ghost blog siliconheaven.info
After=network.target
[Service]
Type=simple
PIDFile=/run/ghost-siliconheaven.info.pid
# This is the directory you installed Ghost to
WorkingDirectory=/var/www/ghost/
User=ghost
Group=ghost
ExecStart=/usr/bin/npm start --production
ExecStop=/usr/bin/npm stop /var/www/ghost/
StandardOutput=syslog
StandardError=syslog
[Install]
WantedBy=multi-user.target