From 28d81f3a29a9f4727d8fdbee8d6dd51dda75732c Mon Sep 17 00:00:00 2001 From: paspo Date: Wed, 12 Oct 2016 23:51:51 +0200 Subject: [PATCH] FIX: doraemon doesn't start --- doraemon.spec | 2 +- root/etc/init/doraemon.conf | 42 +++++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 root/etc/init/doraemon.conf diff --git a/doraemon.spec b/doraemon.spec index e650540..6a1be9c 100644 --- a/doraemon.spec +++ b/doraemon.spec @@ -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 diff --git a/root/etc/init/doraemon.conf b/root/etc/init/doraemon.conf new file mode 100644 index 0000000..e091ef8 --- /dev/null +++ b/root/etc/init/doraemon.conf @@ -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 " +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