Merge pull request 'x86_64' (#1) from x86_64 into main
Reviewed-on: https://gitea.home.com:3000/TolaMironcenko/initscripts/pulls/1
This commit was merged in pull request #1.
This commit is contained in:
Executable
+11
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ ! -d /sys/class/thermal ]; then
|
||||
echo ERROR: no thermal interfaces
|
||||
exit 1
|
||||
fi
|
||||
|
||||
for interface in $(ls /sys/class/thermal/ | grep thermal_zone); do
|
||||
echo $interface: $(($(cat /sys/class/thermal/$interface/temp)/1000))C
|
||||
done
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
start() {
|
||||
notify "Starting ftpd"
|
||||
tcpsvd -vE 0.0.0.0 21 ftpd -w -S -A /srv/ftpd &>/dev/null &
|
||||
tcpsvd -vE 0.0.0.0 21 ftpd -w -S -A /srv/ftp &>/dev/null &
|
||||
check $? "start ftpd"
|
||||
echo $(pgrep tcpsvd) > /var/run/ftpd.pid
|
||||
return $?
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
#!/bin/sh
|
||||
|
||||
#--- import colors and init-funcs ---
|
||||
. /usr/lib/init/colors.sh
|
||||
. /usr/lib/init/init-funcs.sh
|
||||
#------------------------------------
|
||||
|
||||
start() {
|
||||
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 $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
notify "Stopping gitea"
|
||||
kill $(cat /var/run/gitea.pid | awk '{print $2}')
|
||||
check $? "stop gitea"
|
||||
rm /var/run/gitea.pid &> /dev/null
|
||||
return $?
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start|stop|restart|reload|help)
|
||||
"$1"
|
||||
;;
|
||||
*)
|
||||
help
|
||||
return 1
|
||||
;;
|
||||
esac
|
||||
return $?
|
||||
@@ -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
|
||||
|
||||
+2
-1
@@ -14,4 +14,5 @@
|
||||
14httpd
|
||||
15nginx
|
||||
16openrouterinit
|
||||
17dropbear
|
||||
17dropbear
|
||||
18gitea
|
||||
Regular → Executable
Reference in New Issue
Block a user