sudo vi /usr/lib/systemd/system/myservice.service
and add:
[Unit]
Description=Snort NIDS Daemon
After=syslog.target network.target
[Service]
Type=simple
ExecStart=/usr/bin/myprogram -myparams
Ensure it start on boot:
sudo systemctl enable myservice
and attempt to start it:
sudo service myservice start && sudo service myservice status
0 comments:
Post a Comment