# THIS IS A SAMPLE SYSTEMD SERVICE CONFIGURATION FILE FOR REACTOR.
# Modify the WorkingDirectory, Environment, and User values below
# to suit your system configuration. Also modify ExecStart with
# the correct path to the "node" executable, if it has not been
# installed in the system binary directories.
# Then place the file in /etc/systemd/system or whatever other 
# directory is normal for your system (remove the -example) from
# the end of the name. You will need root privilegess to do this.
# Then run:
#     sudo systemctl daemon-reload
#     sudo systemctl start reactor
#
[Unit]
Description=Multi System Reactor
After=network.target

[Service]
Type=simple
User=myuser
WorkingDirectory=/home/myuser/reactor
Environment=NODE_PATH=/home/myuser/reactor
ExecStart=/usr/local/lib/nodejs/bin/node app -p
Restart=on-failure
RestartSec=5s

[Install]
WantedBy=multi-user.target
