Current time: 04-20-2024, 04:42 AM Hello There, Guest! (LoginRegister)


Post Reply 
Upgrade from Vhcs2 Centos 5
Author Message
raphael Offline
Member
***

Posts: 474
Joined: Apr 2007
Reputation: 8
Post: #11
RE: Upgrade from Vhcs2 Centos 5
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
10-18-2007 09:56 AM
Visit this user's website Find all posts by this user Quote this message in a reply
rajkosto Offline
Junior Member
*

Posts: 18
Joined: Oct 2007
Reputation: 0
Post: #12
RE: Upgrade from Vhcs2 Centos 5
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
(This post was last modified: 10-19-2007 06:31 AM by rajkosto.)
10-19-2007 04:01 AM
Find all posts by this user Quote this message in a reply
Sweeny Offline
Junior Member
*

Posts: 74
Joined: Oct 2007
Reputation: 1
Post: #13
RE: Upgrade from Vhcs2 Centos 5
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
(This post was last modified: 03-20-2008 03:36 AM by Sweeny.)
10-20-2007 05:20 AM
Find all posts by this user Quote this message in a reply
raphael Offline
Member
***

Posts: 474
Joined: Apr 2007
Reputation: 8
Post: #14
RE: Upgrade from Vhcs2 Centos 5
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
10-20-2007 05:40 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Sweeny Offline
Junior Member
*

Posts: 74
Joined: Oct 2007
Reputation: 1
Post: #15
RE: Upgrade from Vhcs2 Centos 5
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/...pcp_daemon

Greetings Sweeny
(This post was last modified: 03-20-2008 03:36 AM by Sweeny.)
10-20-2007 06:05 AM
Find all posts by this user Quote this message in a reply
raphael Offline
Member
***

Posts: 474
Joined: Apr 2007
Reputation: 8
Post: #16
RE: Upgrade from Vhcs2 Centos 5
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...pcp_daemon
10-20-2007 06:57 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Sweeny Offline
Junior Member
*

Posts: 74
Joined: Oct 2007
Reputation: 1
Post: #17
RE: Upgrade from Vhcs2 Centos 5
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.
(This post was last modified: 10-20-2007 07:13 AM by Sweeny.)
10-20-2007 07:09 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)