Permalink
Browse files

debian packaging updates.

  • Loading branch information...
1 parent 9b11db9 commit 75a623a356966971d687e84c6a5e0cf8096b400a Andre Bohr committed with dormando Dec 24, 2010
Showing with 89 additions and 11 deletions.
  1. +4 −1 conf/mogilefsd.conf
  2. +62 −0 debian/changelog
  3. +3 −3 debian/control
  4. +10 −2 debian/mogilefsd.init
  5. +0 −2 debian/mogilefsd.install
  6. +1 −1 debian/mogilefsd.postrm
  7. +8 −1 debian/mogstored.init
  8. +1 −1 debian/mogstored.postrm
View
@@ -1,4 +1,7 @@
-#daemonize = 1
+# Enable daemon mode to work in background and use syslog
+daemonize = 1
+# Where to store the pid of the daemon (must be the same in the init script)
+pidfile = /var/run/mogilefsd/mogilefsd.pid
# Database connection information
db_dsn = DBI:mysql:mogilefs:host=127.0.0.1
db_user = username
View
@@ -1,3 +1,65 @@
+mogilefs-server (2.44-1) stable; urgency=low
+
+ * pull from upstream
+
+ -- Dormando <dormando@rydia.net> Thu, 23 Dec 2010 21:58:49 -0800
+
+mogilefs-server (2.43-1) stable; urgency=low
+
+ * pulled 2.43 from github which includes fixes from 2.42-1
+ * added pidfile entry to default mogilefsd.conf to fix pidfile creation bug
+ * added daemon = 1 to default mogilefsd.conf to make mogilefsd use syslog
+
+ -- Andre Pascha <bender@duese.org> Mon, 11 Oct 2010 10:21:27 +0200
+
+mogilefs-server (2.42-1kwick2) stable; urgency=low
+
+ * added fixes for over replicated files of todays github pull
+ * include mindevcount=1 fixes
+
+ -- Andre Pascha <bender@duese.org> Sun, 10 Oct 2010 14:34:25 +0200
+
+mogilefs-server (2.42-1kwick1) stable; urgency=low
+
+ * git pull of today
+ * includes fix from Andre Pascha to make FSCK work again
+
+ -- Andre Pascha <bender@duese.org> Sat, 09 Oct 2010 18:12:18 +0200
+
+mogilefs-server (2.41-1kwick3) stable; urgency=low
+
+ * fixed problem with wrong permissions on mogilefsd pid file
+
+ -- Andre Pascha <bender@duese.org> Fri, 08 Oct 2010 17:43:44 +0200
+
+mogilefs-server (2.41-1kwick2) stable; urgency=low
+
+ * added pid directory to mogstored/mogilefsd. fixes problem with stopping
+ the daemon via init skript when daemon is set to 1 in the config. Daemon
+ needs to be set to 1 or syslogging won't be enabled.
+
+ -- Andre Pascha <bender@duese.org> Fri, 08 Oct 2010 17:33:11 +0200
+
+mogilefs-server (2.41-1kwick1) stable; urgency=low
+
+ * moved to github version of MogileFS-Server
+ * package versioning now coresponds to mogilefs version
+
+ -- Andre Pascha <bender@duese.org> Fri, 08 Oct 2010 16:59:33 +0200
+
+mogilefs-server (1.00-2kwick2) stable; urgency=low
+
+ * added dependency to Danga::Socket for mogostored
+
+ -- Andre Pascha <bender@duese.org> Fri, 08 Oct 2010 15:29:46 +0200
+
+mogilefs-server (1.00-2kwick1) stable; urgency=low
+
+ * Non-maintainer upload.
+ * SVN snapshot of 06 Oct 2010
+
+ -- Andre Pascha <bender@duese.org> Thu, 07 Oct 2010 17:26:01 +0200
+
mogilefs-server (1.00-2) unstable; urgency=low
* fix data loss bug when the 'tempfile' table is InnoDB and the
View
@@ -2,20 +2,20 @@ Source: mogilefs-server
Section: perl
Priority: optional
Maintainer: Jonathan Steinert <deb@hachi.kuiki.net>
-Build-Depends-Indep: libstring-crc32-perl
+Build-Depends-Indep: debhelper (>= 4.1.40), perl (>= 5.6.0-16), libstring-crc32-perl
Standards-Version: 3.6.1.0
Package: mogstored
Architecture: all
-Depends: ${perl:Depends}, debhelper (>= 4.1.40), libperlbal-perl, libio-aio-perl, debconf (>= 1.2.0)
+Depends: ${perl:Depends}, libperlbal-perl, libio-aio-perl, debconf (>= 1.2.0)
Suggests: mogilefs-utils
Description: storage node daemon for MogileFS
Mogstored is a storage node daemon for MogileFS, the open-source
application-level distributed filesystem from Danga Interactive.
Package: mogilefsd
Architecture: all
-Depends: ${perl:Depends}, debhelper (>= 4.1.40), libdbd-mysql-perl, libdbi-perl, debconf (>= 1.2.0), libnet-netmask-perl, libwww-perl
+Depends: ${perl:Depends}, libdbd-mysql-perl, libdbi-perl, debconf (>= 1.2.0), libnet-netmask-perl, libwww-perl, libdanga-socket-perl
Suggests: mogilefs-utils
Description: scalable distributed filesystem from Danga Interactive
MogileFS is an open-source, application-level distributed filesystem. It
View
@@ -15,7 +15,8 @@ DAEMON=/usr/bin/mogilefsd
NAME=mogilefsd
DESC=mogilefsd
DEFAULTS=/etc/default/$NAME
-PIDFILE=/var/run/$NAME.pid
+PIDDIR=/var/run/$NAME
+PIDFILE=$PIDDIR/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME
# Exit if the package is not installed
@@ -47,6 +48,13 @@ set -e
#
do_start()
{
+
+ if ! test -d ${PIDDIR}
+ then
+ mkdir ${PIDDIR}
+ chown ${MOGILEFSD_RUNASUSER} ${PIDDIR}
+ fi
+
if [ -e $PIDFILE ]
then
@@ -61,7 +69,7 @@ do_start()
fi
- start-stop-daemon --start --quiet --exec $DAEMON --pidfile $PIDFILE -b -m --name $NAME --chuid $MOGILEFSD_RUNASUSER
+ start-stop-daemon --start --quiet --exec $DAEMON -b --name $NAME -- chuid $MOGILEFSD_RUNASUSER
}
#
View
@@ -3,5 +3,3 @@ usr/bin/mogilefsd /usr/bin
usr/share/man/man1/mogilefsd.1p /usr/share/man/man1
usr/share/man/man3/MogileFS* /usr/share/man/man3
usr/share/perl5/MogileFS /usr/share/perl5
-usr/share/perl5/dev-mogstored.pl /usr/share/mogilefsd
-usr/share/perl5/makedocs.pl /usr/share/mogilefsd
View
@@ -11,5 +11,5 @@ if [ "$1" = "purge" ]
rmdir --ignore-fail-on-non-empty /etc/default
fi
-rm -f /var/run/mogilefsd.pid
+rm -fr /var/run/mogilefsd
View
@@ -15,7 +15,8 @@ DAEMON=/usr/bin/mogstored
NAME=mogstored
DESC=mogstored
DEFAULTS=/etc/default/$NAME
-PIDFILE=/var/run/$NAME.pid
+PIDDIR=/var/run/$NAME
+PIDFILE=$PIDDIR/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME
# Exit if the package is not installed
@@ -47,6 +48,12 @@ set -e
#
do_start()
{
+ if ! test -d ${PIDDIR}
+ then
+ mkdir ${PIDDIR}
+ chown ${MOGSTORED_RUNASUSER} ${PIDDIR}
+ fi
+
if [ -e $PIDFILE ]
then
View
@@ -19,6 +19,6 @@ fi
#DEBHELPER#
- rm -f /var/run/mogstored.pid
+ rm -fr /var/run/mogstored

0 comments on commit 75a623a

Please sign in to comment.