Ik wil onderstaand (RPM based) aanpassen voor Ubuntu
===================================================
First create a file with below mentioned script.
# vim /etc/rc.d/init.d/vtigercrm510-RC
Note: Change the /home/vtiger/vtigerCRM5/bin/startvTiger.sh and stopvTiger.sh according to your vtigercrm path in the below mentioned script.
script
#!/bin/sh
# description: vtigercrm510-RC server
# chkconfig: 2345 99 00
case "$1" in
'start')
/home/vtiger/vtigerCRM5/bin/startvTiger.sh
touch /var/lock/subsys/vtigercrm510-RC
;;
'stop')
/home/vtiger/vtigerCRM5/bin/stopvTiger.sh
rm -f /var/lock/subsys/vtigercrm510-RC
;;
*)
echo "Usage: $0 { start | stop }"
;;
esac
exit 0
And give execute permissions to the Vtiger script.
#chmod +x vtigercrm510-RC
chkconfig is a tool to simplify management of the symbolic links in /etc/rc.d under Linux
#chkconfig --add vtigercrm510-RC
===============================================
Deze lijn
# vim /etc/rc.d/init.d/vtigercrm510-RC
heb ik aangepast
#vim /etc/init.d/vtigercrm510-RC
Het script
#!/bin/sh
# description: vtigercrm510-RC server
# chkconfig: 2345 99 00
case "$1" in
'start')
/home/vtiger/vtigerCRM5/bin/startvTiger.sh
touch /var/lock/subsys/vtigercrm510-RC
;;
'stop')
/home/vtiger/vtigerCRM5/bin/stopvTiger.sh
rm -f /var/lock/subsys/vtigercrm510-RC
;;
*)
echo "Usage: $0 { start | stop }"
;;
esac
exit 0
heb ik hetzelfde gelaten.
Hoe pas ik hetvolgende aan? :
chkconfig is a tool to simplify management of the symbolic links in /etc/rc.d under Linux
#chkconfig --add vtigercrm510-RC
Dit
#chkconfig --add vtigercrm510-RC
werkt niet in Ubuntu
Krijg hier een hoop foutmeldingen:
root@MSI:/etc/init.d# chkconfig --add vtigercrm510-RC
insserv: warning: script 'K20acpi-support' missing LSB tags and overrides
insserv: warning: script 'vtigercrm510-RC' missing LSB tags and overrides
insserv: warning: script 'rsyslog' missing LSB tags and overrides
insserv: warning: current start runlevel(s) (0 6) of script `umountfs' overwrites defaults (empty).
insserv: warning: current start runlevel(s) (0 6) of script `umountnfs.sh' overwrites defaults (empty).
insserv: warning: script 'hwclock' missing LSB tags and overrides
insserv: warning: script 'network-manager' missing LSB tags and overrides
insserv: warning: script 'udev' missing LSB tags and overrides
..........
.........
Is hiervoor een equivalent ?