mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
`setup.sh` and `start.sh` combined into a single script netalertx now starts and runs via systemd unit, can be started, stopped and restarted `systemctl start netalertx` `systemctl stop netalertx` `systemctl status netalertx` etc Logs to `journalctl` and output can be followed with `journalctl -f` Amalgamated chmods tuned chmods based on earlier feedback and discussion install script accepts command line parameter: - 'install' to continue and DELETE ALL! - 'update' to just update from GIT (keeps your db and settings) - 'start' to do nothing, leave install as-is (just run the start script, set up services etc) Please have a look, comments welcome :-)
13 lines
337 B
Desktop File
13 lines
337 B
Desktop File
[Unit]
|
|
Description=NetAlertX - Network, presence scanner and alert framework
|
|
|
|
[Service]
|
|
EnvironmentFile=/etc/default/netalertx
|
|
PassEnvironment=INSTALL_SYSTEM_NAME INSTALLER_DIR INSTALL_DIR PHPVERSION VIRTUAL_ENV PATH
|
|
ExecStart=/usr/bin/python3 "${INSTALL_DIR}/server"
|
|
Restart=on-failure
|
|
Type=simple
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|