We have created a custom application using .net core 6.0 and the binaries of this application are kept at /usr/bin/IMIC
.
It is running as a service on RHEL 8.8. The service file IMIC.service
is located at /etc/systemd/system/
.
The contents of IMIC.service
is as below :
[Unit]
Description=IMIC service application
[Service]
Type=notify
WorkingDirectory=/usr/bin/IMIC
ExecStart=/usr/bin/IMIC/IMIC
[Install]
WantedBy=multi-user.target
Currently, if we want to launch this service, it is mandatory to use sudo as below
sudo systemctl start IMIC
But requirement is we need to launch this service without using sudo as shown below:
systemctl start IMIC
When we launch above command it is giving some errors.
Could you help us how to launch custom service without using sudo? Your help is really appreciated:)
journalctl -u IMIC
and see what it is reporting. – nobody Mar 11 '24 at 09:26