X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=etc%2Finit.d%2Ftmpfs;fp=etc%2Finit.d%2Ftmpfs;h=0000000000000000000000000000000000000000;hb=1b63122dd097c575896b4c4158ed5439eeca1563;hp=8e46d000321af07f7ca4d40a9e198b33caa7b126;hpb=7343218cce2a1d7845ab90df70ad894ba9e5b79a;p=lhc%2Fateliers.git diff --git a/etc/init.d/tmpfs b/etc/init.d/tmpfs deleted file mode 100755 index 8e46d00..0000000 --- a/etc/init.d/tmpfs +++ /dev/null @@ -1,90 +0,0 @@ -#! /bin/sh -### BEGIN INIT INFO -# Provides: tmpfs -# Required-Start: $local_fs -# Required-Stop: $local_fs -# X-Start-Before: nginx -# Default-Start: 2 3 4 5 -# Default-Stop: 0 1 6 -# Short-Description: Initialise tmpfs file systems -### END INIT INFO - -PATH=/sbin:/usr/sbin:/bin:/usr/bin - -. /lib/init/vars.sh -. /lib/lsb/init-functions - -do_start() { - if [ -x /etc/rc.local ] - then - [ "$VERBOSE" != no ] && log_begin_msg "Initialising tmpfs file systems" - - ! mountpoint -q /run || - sudo install -d -m 770 -o www-data -g www-data \ - /run/nginx \ - /run/nginx/fastcgi - - if mountpoint -q /run/shm && - test -f /run/shm/.tmpfs - then - set -x - sudo install -d -m 1777 -o root -g root \ - /run/shm/cache \ - /run/shm/tmp - - ! getent passwd www-data >/dev/null || - sudo install -d -m 770 -o www-data -g www-data \ - /run/shm/cache/nginx \ - /run/shm/cache/nginx/fastcgi \ - /run/shm/cache/nginx/client_body - - ! getent passwd php5 >/dev/null || - sudo install -d -m 1771 -o php5 -g php5 \ - /run/php5 \ - /run/php5/fpm \ - /run/shm/cache/php5 \ - /run/shm/cache/php5/fpm \ - /run/shm/tmp/php5 - - ! getent passwd fcgi-gitweb >/dev/null || - sudo install -d -m 1771 -o fcgi-gitweb -g fcgi-gitweb \ - /run/shm/tmp/gitweb - - ! getent passwd mysql >/dev/null || - sudo install -d -m 1771 -o mysql -g mysql \ - /run/mysqld \ - /run/mysqld/sock - - ! getent passwd postgres >/dev/null || - sudo install -d -m 710 -o postgres -g postgres-data \ - /run/postgresql - - ! getent passwd postgrey >/dev/null || - sudo install -d -m 2710 -o postgrey -g postfix \ - /run/postgrey - - sudo install -d -m 1771 -o root -g root \ - /run/spawn-fcgi - fi - - ES=$? - [ "$VERBOSE" != no ] && log_end_msg $ES - return $ES - fi - } - -case "$1" in - (start|restart) - do_start - ;; - (reload|force-reload) - echo "Error: argument '$1' not supported" >&2 - exit 3 - ;; - (stop) - ;; - (*) - echo "Usage: $0 start|restart|stop" >&2 - exit 3 - ;; - esac