...
This can be done with systemd
which is built-in to Linux. Here is a sample configuration file (named /etc/systemd/system/pico-engine.service
):
Code Block | ||
---|---|---|
| ||
[Unit] Description=pico-engine After=remote-fs.target [Service] User=USERNAME Environment="PICO_ENGINE_BASE_URL=http://HOSTNAME:PORT" ExecStart=/usr/local/bin/pico-engine Restart=always |
...