I am working with the service files in Centos 7 and am creating one for xymon. The issue I am running into is I am trying to configure start, stop, and restart. I went as far as using an existing service file as a template, but no matter which option I pick the "stop" option is used without fail.
# more xymon.service [Unit] Description=Xymon Monitor Service After=network.target [Service] Type=simple #User=xymon ExecStart=/home/xymon/startup/xymon-init.d start ExecReload=/home/xymon/startup/xymon-init.d restart ExecStop=/home/xymon/startup/xymon-init.d stop [Install] WantedBy=multi-user.target
I tried simple, forked, and a couple other variants to no avail. I put a dummy script in which printed the first parameter and I always get stop in the log file. I have done other types of service files without issue in the past, but this is my first foray into this systemctl. Any help would be appreciated.