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

Create packages for Centos, RedHat, *BSD... #8

Open
ibc opened this Issue Aug 7, 2012 · 4 comments

Comments

Projects
None yet
4 participants
@ibc
Member

ibc commented Aug 7, 2012

Currently just a DEB package is provided for automatic installation. We need to also provide RMP packages and so on so they automatically install the oversip gem along with init scripts (like the DEB package does).

Can you help on this?

@ghost ghost assigned ibc Aug 29, 2012

@jaxyeh

This comment has been minimized.

Show comment
Hide comment
@jaxyeh

jaxyeh Oct 11, 2012

Inaki, you might want to check out the FPM tool used to generate RPM builds. I've successfully used this tool to generate deb + rpm builds for Ubuntu 12.04, CentOS/RHEL/Fedora, etc...

jaxyeh commented Oct 11, 2012

Inaki, you might want to check out the FPM tool used to generate RPM builds. I've successfully used this tool to generate deb + rpm builds for Ubuntu 12.04, CentOS/RHEL/Fedora, etc...

@ibc

This comment has been minimized.

Show comment
Hide comment
@ibc

ibc Oct 11, 2012

Member

Thanks, I'll take a look to it.

Member

ibc commented Oct 11, 2012

Thanks, I'll take a look to it.

@franx

This comment has been minimized.

Show comment
Hide comment
@franx

franx Apr 29, 2013

here a generic CentOS/RHEL/Fedora init script for oversip.


#!/bin/sh

chkconfig: - 85 15

PID="--pid /var/run/oversip/oversip.pid -u oversip";

if [ ! -d /var/run/oversip ]; then
mkdir -p /var/run/oversip
fi

if id -u oversip >/dev/null 2>&1; then
echo "Switch to user oversip";
else
adduser -u 106 -g 99 --shell /bin/false -b /var/run oversip
chown oversip /var/run/oversip
fi

. /etc/rc.d/init.d/functions

case "$1" in
start)
echo -n "Starting oversip: "
daemon oversip $PID
echo
touch /var/lock/subsys/oversip
;;
stop)
echo -n "Shutting down oversip ??: "
killproc oversip
echo
rm -f /var/lock/subsys/oversip
;;
status)
status oversip
;;
condrestart)
if [ -f /var/lock/subsys/oversip ]; then
$0 stop
$0 start
fi
;;
reload|restart)
$0 stop
$0 start
echo "destroy existing connections during a restart."
;;
*)
echo "Usage: $0 {start|stop|restart|status}"
exit 1
esac

exit 0


hope it helps.

franx commented Apr 29, 2013

here a generic CentOS/RHEL/Fedora init script for oversip.


#!/bin/sh

chkconfig: - 85 15

PID="--pid /var/run/oversip/oversip.pid -u oversip";

if [ ! -d /var/run/oversip ]; then
mkdir -p /var/run/oversip
fi

if id -u oversip >/dev/null 2>&1; then
echo "Switch to user oversip";
else
adduser -u 106 -g 99 --shell /bin/false -b /var/run oversip
chown oversip /var/run/oversip
fi

. /etc/rc.d/init.d/functions

case "$1" in
start)
echo -n "Starting oversip: "
daemon oversip $PID
echo
touch /var/lock/subsys/oversip
;;
stop)
echo -n "Shutting down oversip ??: "
killproc oversip
echo
rm -f /var/lock/subsys/oversip
;;
status)
status oversip
;;
condrestart)
if [ -f /var/lock/subsys/oversip ]; then
$0 stop
$0 start
fi
;;
reload|restart)
$0 stop
$0 start
echo "destroy existing connections during a restart."
;;
*)
echo "Usage: $0 {start|stop|restart|status}"
exit 1
esac

exit 0


hope it helps.

@tejastank

This comment has been minimized.

Show comment
Hide comment
@tejastank

tejastank commented Mar 22, 2016

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment