We use systemd to start wiki on crash or reboot.
See Config Notes
(Modified for the _ouroboros_ server, which runs _fedwiki_ as user _fedwiki_ rather than as _root_.)
/etc/systemd/system/wiki.service
[Unit] Description=wiki - federated wiki Documentation=http://admin.asia.wiki.org After=network.target [Service] User=fedwiki Environment=HOME=/home/fedwiki/ WorkingDirectory=/home/fedwiki/ Group=www-data Type=simple User=fedwiki ExecStart=/home/fedwiki/scripts/wiki_startup.sh Restart=always #Restart=on-failure [Install] WantedBy=multi-user.target
We instruct systemd to read, start and ready reboot.
systemctl daemon-reload systemctl start wiki systemctl enable wiki
We read the server's log.
journalctl -u wiki