Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error running sergate as init.d #19

Open
chandro opened this issue Aug 24, 2016 · 5 comments
Open

error running sergate as init.d #19

chandro opened this issue Aug 24, 2016 · 5 comments

Comments

@chandro
Copy link

chandro commented Aug 24, 2016

when i execute "service sergate start" i get this error:

[root@chicago init.d]# service sergate start
/etc/init.d/sergate: line 12: /lib/lsb/init-functions: No such file or directory

that is fixed with

yum install redhat-lsb

and next error is

[root@chicago init.d]# service sergate start
/etc/init.d/sergate: line 29: log_daemon_msg: command not found
/etc/init.d/sergate: line 30: start-stop-daemon: command not found
/etc/init.d/sergate: line 32: log_end_msg: command not found

@BotoX
Copy link
Owner

BotoX commented Aug 24, 2016

Which Linux distribution are you running?

@chandro
Copy link
Author

chandro commented Aug 24, 2016

centos.

if i run directly the ./sergate

starts ok.

@nicky1605
Copy link

nicky1605 commented Sep 29, 2016

@BotoX
I also encountered this problem, because before the file a lot of commands only apply to Debian, not applicable to the CentOS6, so there will be the following error.

service sergate start
/etc/init.d/sergate: line 29: log_daemon_msg: command not found
/etc/init.d/sergate: line 30: start-stop-daemon: command not found
/etc/init.d/sergate: line 32: log_end_msg: command not 

I tried using CentOS to compile these commands and failed.

[root@Nicky ~]# wget http://ftp.de.debian.org/debian/pool/main/d/dpkg/dpkg_1.18.10.tar.xz
[root@Nicky ~]# tar -xf dpkg_1.18.10.tar.xz
[root@Nicky ~]# cd dpkg-1.18.10/
[root@Nicky dpkg-1.18.10]# ./configure >/dev/null
[root@Nicky dpkg-1.18.10]# make >/dev/null
[root@Nicky dpkg-1.18.10]# cd utils
[root@Nicky utils]# make
[root@Nicky utils]# sudo cp start-stop-daemon /usr/local/bin/start-stop-daemon
[root@Nicky utils]# cd /usr/local/share/
[root@Nicky share]# cp ServerStatus/other/sergate.initd /etc/init.d/sergate
[root@Nicky share]# service sergate start
/etc/init.d/sergate: line 29: log_daemon_msg: command not found
/etc/init.d/sergate: line 30: start-stop-daemon: command not found
/etc/init.d/sergate: line 32: log_end_msg: command not found

Can not like this site and then design a script for CentOS, thank you!

@vdar
Copy link

vdar commented Nov 26, 2016

I'm using this on CentOS 6
https://ngadmin.com/tutorials/20160213-botox-centos

@nicky1605
Copy link

@vdar This is just for the client, but the client only need to modify the ./clients/ client.py,
then add su -l $USERNAME -c "/path/to/client.py &> /dev/null &"in /etc/rc.local can be monitored. The most important is the server service“sergate.initd” can not be used for CentOS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants