diff --git a/usr/lib/init/services/gitea.service b/usr/lib/init/services/gitea.service index 5054659..6eed33f 100644 --- a/usr/lib/init/services/gitea.service +++ b/usr/lib/init/services/gitea.service @@ -6,8 +6,8 @@ #------------------------------------ start() { - otify "Starting gitea" - su gitea -c "/usr/bin/gitea -w /home/gitea" & + notify "Starting gitea" + su gitea -c "/usr/bin/gitea -w /home/gitea" &> /var/log/gitea.log & check $? "start gitea" echo $(pgrep gitea) > /var/run/gitea.pid return $? @@ -15,7 +15,7 @@ start() { stop() { notify "Stopping gitea" - kill $(cat /var/run/gitea.pid) + kill $(cat /var/run/gitea.pid | awk '{print $2}') check $? "stop gitea" rm /var/run/gitea.pid &> /dev/null return $? diff --git a/usr/lib/init/services/httpd.service b/usr/lib/init/services/httpd.service index 49e5386..e66b0d7 100755 --- a/usr/lib/init/services/httpd.service +++ b/usr/lib/init/services/httpd.service @@ -6,7 +6,7 @@ #------------------------------------ start() { - otify "Starting httpd" + notify "Starting httpd" /usr/bin/httpd -h /srv/www check $? "start httpd" echo $(pgrep httpd) > /var/run/httpd.pid