gitlab-ci

This commit is contained in:
wt committed 2024-08-22 18:27:44 +07:00
1 parent 188615c4d9
commit 4bc070a2b5
9 files changed
+58 -7

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
#!/bin/sh
. /etc/init.d/init-funcs
. /etc/init.d/colors.sh
case "$1" in
start)
printf "$UYELLOW** Mounting virtual filesystems\n$RESET"
mount -t tmpfs tmpfs /var/run
check $? "Mount virtual filesystems"
echo $! > /var/run/networking.pid
;;
stop)
printf "$UYELLOW Umounting virtual filesystems\n$RESET"
umount /var/run
check $? "Umount virtual filesystems"
rm /var/run/networking.pid
;;
restart|reload)
$0 stop
$0 start
;;
*)
echo "$0 init script usage: $0 {start|stop|restart|reload}"
return 1
esac
return $?