ispCP - Board - Support
Upgrade from Vhcs2 Centos 5 - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: System Setup & Installation (/forum-32.html)
+--- Thread: Upgrade from Vhcs2 Centos 5 (/thread-1554.html)

Pages: 1 2


RE: Upgrade from Vhcs2 Centos 5 - raphael - 10-18-2007 09:56 AM

Quote:is there a centos/fedora compartible init script somewhere ?
these are all debian functions like pidofproc is pidof in redhat
those aren't "debian" functions, please see Linux Standard Base.

Distros should try to be LSB compliant


RE: Upgrade from Vhcs2 Centos 5 - rajkosto - 10-19-2007 04:01 AM

now i cant get rid of the duplicate entry thing...even when i delete it it still comes back...

is there a way to change my password using the database ?
i think its screwing up password entry


RE: Upgrade from Vhcs2 Centos 5 - Sweeny - 10-20-2007 05:20 AM

raphael Wrote:
Quote:is there a centos/fedora compartible init script somewhere ?
these are all debian functions like pidofproc is pidof in redhat
those aren't "debian" functions, please see Linux Standard Base.

Distros should try to be LSB compliant

The start_stop_daemon is a debian function I think because I didn't see this function on any other distro like slackware, SuSe, Redhat, CentOS and Gentoo.

Greetings
Sweeny


RE: Upgrade from Vhcs2 Centos 5 - raphael - 10-20-2007 05:40 AM

Quote:The start_stop_daemon is a debian function I think because I didn't see this function on any other distro like slackware, SuSe, Redhat, CentOS and Gentoo.
can you tell me where start_stop_daemon is being used so I can fix it?
start_daemon and killproc are being used and both are specified in the LSB 3.1 specs


RE: Upgrade from Vhcs2 Centos 5 - Sweeny - 10-20-2007 06:05 AM

Here is the init.d which comes with the trunk:
Code:
case "$1" in
  start)
    echo "Starting $DESC..."
    start-stop-daemon --start --verbose --exec $DAEMON -- -p $PID
    ;;
  stop)
    start-stop-daemon --stop --verbose --pidfile $PID --exec $DAEMON --retry 5
    rm $PID
    ;;
  restart|force-reload)
    start-stop-daemon --stop --verbose --pidfile $PID --exec $DAEMON --retry 5
    rm $PID
    echo "Starting $DESC..."
    start-stop-daemon --start --verbose --exec $DAEMON -- -p $PID
    ;;
  status)

and on centos it was the same or it is the same when the init script which I made for CentOS isn't added yet. As you can see the start-stop-daemon is used for everything. The startscript which works for CentOS can be found here: http://mirrors.penguinfriends.org/ISPCP/CentOS-5.0/ispcp_daemon

Greetings Sweeny


RE: Upgrade from Vhcs2 Centos 5 - raphael - 10-20-2007 06:57 AM

Can you point me to the file from where you are reading those lines?
This is the current ispcp_daemon init.d script for Debian:
http://www.isp-control.net/ispcp/browser/trunk/configs/init.d/ispcp_daemon


RE: Upgrade from Vhcs2 Centos 5 - Sweeny - 10-20-2007 07:09 AM

It was in the Trunk from 14.10.2007 but even killproc, pidofproc log and start_daemon are not available under Slackware, CentOS and Redhat. So they need their own individual start-scripts to work. Because they have no /lib/lsb/init-functions.