Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 303685 Details for
Bug 383455
app-misc/openplacos/openplacos-0.3.0.ebuild New ebuild, latest stable releases on x86 and amd64
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
openplacos-0.3.0-debug.diff
file_383455.txt (text/plain), 2.33 KB, created by
jaypeche@gmail.com
on 2012-02-29 07:05:54 UTC
(
hide
)
Description:
openplacos-0.3.0-debug.diff
Filename:
MIME Type:
Creator:
jaypeche@gmail.com
Created:
2012-02-29 07:05:54 UTC
Size:
2.33 KB
patch
obsolete
>diff -urN openplacos.orig/setup_files/openplacos openplacos/setup_files/openplacos >--- openplacos.orig/setup_files/openplacos 2011-12-07 08:31:51.000000000 +0100 >+++ openplacos/setup_files/openplacos 2012-02-21 16:21:47.000000000 +0100 >@@ -1,31 +1,53 @@ >-#!/bin/bash >+#!/sbin/runscript >+# Copyright 1999-2011 Gentoo Foundation >+# Distributed under the terms of the GNU General Public License v2 >+# $Header: $ > >-case "$1" in >- start) >- echo "Starting OpenplacOS" >- su -l openplacos -s /bin/sh -c "/usr/bin/openplacos-server /etc/default/openplacos > /tmp/openplacos.log &" >- if [ $? -gt 0 ]; then >- exit 1 >- else >- exit 0 >- fi >- ;; >- stop) >- echo "Stopping OpenplacOS" >- pkill openplacos -u openplacos >- if [ $? -gt 0 ]; then >- exit 1 >- else >- exit 0 >- fi >- >- ;; >- restart) >- $0 stop >- sleep 1 >- $0 start >- ;; >- *) >- echo "usage: $0 {start|stop|restart}" >-esac >-exit 0 >+DESCRIPTION="This utility is used to create a low cost home automation system controlled by computer" >+HOMEPAGE="http://openplacos.tuxfamily.org" >+ >+SVCNAME="openplacos-server" >+USER=openplacos >+DAEMON=$(which ${SVCNAME}) >+PIDFILE=/var/run/openplacos.pid >+CONFIGFILE=/etc/default/openplacos >+LOGFILE=/tmp/openplacos.log >+ >+depend() { >+ need dbus mysql >+ after logger >+} >+ >+checkconfig() { >+ if [ ! -r ${CONFIGFILE} ]; then >+ eerror "ERROR: Unable to read configuration file: ${CONFIGFILE}" >+ return 1 >+ fi >+} >+ >+checkprocess() { >+ if [ $(ps ax | grep ${SVCNAME} | grep -v grep | wc -l) -eq 0 ]; then >+ eerror "ERROR: Please, check logfile: ${LOGFILE}" >+ return 1 >+ fi >+} >+ >+start() { >+ checkconfig || return $? >+ >+ ebegin "Starting openplacos" >+ export OPOS_DEBUG=1 >+ start-stop-daemon --start --user ${USER} --exec ${DAEMON} \ >+ --pidfile ${PIDFILE} --make-pidfile --background --stdout ${LOGFILE} >+ >+ sleep 3 >+ checkprocess || return $? >+ >+ eend $? "Failed to start openplacos !" >+} >+ >+stop() { >+ ebegin "Stopping openplacos" >+ start-stop-daemon --stop --quiet --user ${USER} --exec ${DAEMON} --pidfile ${PIDFILE} >+ eend $? "Failed to stop openplacos !" >+}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 383455
:
286863
|
286865
|
286867
|
286869
|
293417
|
293419
|
303679
|
303681
|
303683
| 303685 |
303687
|
303689
|
326300
|
326302
|
326304