via webmin under version 1540 this is script generated by webmin (can be saved at boot)
#!/bin/sh
case "$1" in
'start')
/opt/lampp/lampp start
;;
'stop')
;;
*)
echo "Usage: $0 { start | stop }"
;;
esac
exit 0
But via webmin 1540 this is the result (and cant be saved at boot)
#!/bin/sh
### BEGIN INIT INFO
# Provides: __xampp
# Required-Start: $network
# Required-Stop: $network
# Default-Start: 2 3 5
# Description: __xampp
### END INIT INFO
case "$1" in
'start')
/opt/lampp/lampp start
;;
'stop')
;;
*)
echo "Usage: $0 { start | stop }"
;;
esac
exit 0
What is the error message you get when trying to save that new script exactly?
Those new headers are needed to work with upstart and other modern boot systems.
what happen is:
- when I want to start lampp from bootup and shutdown, prior to version 1540, i can choose it wether to save it from boot or not
- in 1540, I can't do that. I CAN actually make new item, but I can NOT make it run everytime my machine restart (or simply I can NOT save it at boot)
Please check the script generated from webmin (both, but differrent version)
regards,
from Jakarta
Which Linux distribution are you using there ?
If it is Ubuntu 10 or later, you may want to try the 1.541 development version package available from http://www.webmin.com/devel.html . This fixes some bugs in support for the new Upstart boot system used on Ubuntu 10.
It's on Lucid 10.04 LTS
Tried 1541.
Problem still not resolved.
Upon editing an item, Start Now and Stop Now is missing
Seems all have to be filled (eg "description", while in old webmin we can leave it empty).
- Command has to be filled in "server PRogram and parameters"?
- I dont know the aim of "Commands to run before..." field.
Still dont worked.
Did you try deleting your old action and creating a new one?
All you need to enter is a name (like xampp), a description (like Start xampp server), and a server command to run (like /opt/lampp/lampp start)
See thisfollowing 2 webmin generated script
the 1st is made by webmin < 1540 the 2nd is made by 1540
the 1st can be saved or not saved at boot, while the second, you can create but you can't save it at boot. the sign "at boot?" says red No
The 1st script still worked on webmin 1540 environment.
1.
#!/bin/sh
# lampp
case "$1" in
'start')
/opt/lampp/lampp startapache
/opt/lampp/lampp startmysql
/opt/lampp/lampp startftp
;;
'stop')
/opt/lampp/lampp stop
;;
*)
echo "Usage: $0 { start | stop }"
;;
esac
exit 0
2.
#!/bin/sh
### BEGIN INIT INFO
# Provides: __lamp2
# Required-Start: $network
# Required-Stop: $network
# Default-Start: 2 3 5
# Description: lampp too
### END INIT INFO
case "$1" in
'start')
/opt/lampp/lampp startapache
/opt/lampp/lampp startmysql
/opt/lampp/lampp startftp
;;
'stop')
;;
*)
echo "Usage: $0 { start | stop }"
;;
esac
exit 0
Are you sure that 2nd script was created using Webmin 1.541? Because it should create all new scripts as upstart actions, which are files in the /etc/init directory with a .conf extension. Does /etc/init exist on your system?