forked from LibreSchool/doraemon
FIX: doraemon doesn't start
This commit is contained in:
parent
85c4306e74
commit
28d81f3a29
@ -1,7 +1,7 @@
|
||||
Summary: Helps client to join domain and maintain itself
|
||||
Name: doraemon
|
||||
Version: 2.0.0
|
||||
Release: 5.ns6
|
||||
Release: 7.ns6
|
||||
URL: https://github.com/bglug-it/doraemon/
|
||||
License: GPLv2+
|
||||
Packager: Paolo Asperti <paolo@asperti.com>
|
||||
|
42
root/etc/init/doraemon.conf
Normal file
42
root/etc/init/doraemon.conf
Normal file
@ -0,0 +1,42 @@
|
||||
# ================= DO NOT MODIFY THIS FILE =================
|
||||
#
|
||||
# Manual changes will be lost when this file is regenerated.
|
||||
#
|
||||
# Please read the developer's guide, which is available
|
||||
# at https://dev.nethesis.it/projects/nethserver/wiki/NethServer
|
||||
# original work from http://www.contribs.org/development/
|
||||
#
|
||||
# Copyright (C) 2013 Nethesis S.r.l.
|
||||
# http://www.nethesis.it - support@nethesis.it
|
||||
#
|
||||
#
|
||||
# 10base doraemon - Apache instance that runs the doraemon service
|
||||
#
|
||||
|
||||
description "Apache instance that runs the doraemon service"
|
||||
author "Paolo Asperti <paolo@asperti.com>"
|
||||
respawn
|
||||
respawn limit 10 5
|
||||
expect fork
|
||||
start on started network
|
||||
stop on stopping network
|
||||
|
||||
|
||||
#
|
||||
# 20pre_start
|
||||
#
|
||||
pre-start script
|
||||
STAT=`/sbin/e-smith/config getprop doraemon status`
|
||||
if test "x$STAT" = "xenabled" \
|
||||
-a -f "/etc/e-smith/db/configuration/defaults/doraemon/status" \
|
||||
-a -x /usr/sbin/doraemon; then
|
||||
exit 0;
|
||||
fi
|
||||
stop; exit 0;
|
||||
end script
|
||||
|
||||
|
||||
#
|
||||
# 30script
|
||||
#
|
||||
exec /usr/sbin/doraemon -f /etc/httpd/doraemon/httpd.conf
|
Loading…
x
Reference in New Issue
Block a user