Skip to content
This repository has been archived by the owner on Aug 14, 2020. It is now read-only.

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

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

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

ibc opened this issue Aug 7, 2012 · 4 comments
Assignees
Milestone

Comments

@ibc
Copy link
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
Copy link

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
Copy link
Member Author

ibc commented Oct 11, 2012

Thanks, I'll take a look to it.

@franx
Copy link

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
Copy link

+1

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

No branches or pull requests

4 participants