Sample Header Ad - 728x90

After configure an .sh with chkconfig, systemctl says unit myservice not found

0 votes
2 answers
150 views
I'm doing some labs for test setups... I've developed a bash script to set it to autostart using systemd. I installed chkconfig and configured my script as follows: Using root: cd /mypath cp myscript.sh /etc/init.d/ cd /etc/init.d chkconfig --add myscript.sh chkconfig myscript.sh on systemctl start myscript I'm receiving: Unit myscript.service could not be found.
Asked by jfidel87 (11 rep)
Aug 3, 2023, 04:14 AM
Last activity: Aug 5, 2023, 02:34 PM