Update group/passwd databases. Add startup/shutdown scripts.
This commit is contained in:
parent
71408d28fd
commit
7b0b11ae89
8 changed files with 38 additions and 4 deletions
4
etc/boot.d/pushover-alert
Executable file
4
etc/boot.d/pushover-alert
Executable file
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Alert that this host is up.
|
||||
[[ -x /opt/sbin/pushover-client ]] && /opt/sbin/pushover-client -p -1 -m "Boot up: ${HOSTNAME%%.*}"
|
||||
BIN
etc/gshadow.gpg
BIN
etc/gshadow.gpg
Binary file not shown.
|
|
@ -10,7 +10,7 @@ mail:x:8:8:mail:/var/mail:/usr/sbin/nologin
|
|||
news:x:9:9:news:/var/spool/news:/usr/sbin/nologin
|
||||
uucp:x:10:10:uucp:/var/spool/uucp:/usr/sbin/nologin
|
||||
proxy:x:13:13:proxy:/bin:/usr/sbin/nologin
|
||||
www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin
|
||||
www-data:x:33:33:www-data:/var/www:/bin/bash
|
||||
backup:x:34:34:backup:/var/backups:/usr/sbin/nologin
|
||||
list:x:38:38:Mailing List Manager:/var/list:/usr/sbin/nologin
|
||||
irc:x:39:39:ircd:/run/ircd:/usr/sbin/nologin
|
||||
|
|
|
|||
8
etc/rc.local
Executable file
8
etc/rc.local
Executable file
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/bash
|
||||
# This script is executed at the end of each multiuser runlevel.
|
||||
# Make sure that the script will "exit 0" on success or any other value on error.
|
||||
# In order to enable or disable this script just change the execution bits.
|
||||
|
||||
[[ -d /etc/boot.d ]] && run-parts /etc/boot.d
|
||||
|
||||
exit 0
|
||||
8
etc/rc.shutdown
Executable file
8
etc/rc.shutdown
Executable file
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/bash
|
||||
# This script is executed by /etc/init.d/rc.local stop.
|
||||
# Make sure that the script will "exit 0" on success or any other value on error.
|
||||
# In order to enable or disable this script just change the execution bits.
|
||||
|
||||
[[ -d /etc/shutdown.d ]] && run-parts /etc/shutdown.d
|
||||
|
||||
exit 0
|
||||
BIN
etc/shadow.gpg
BIN
etc/shadow.gpg
Binary file not shown.
4
etc/shutdown.d/pushover-alert
Executable file
4
etc/shutdown.d/pushover-alert
Executable file
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Alert that this host is going down.
|
||||
[[ -x /opt/sbin/pushover-client ]] && /opt/sbin/pushover-client -p -1 -m "Shut down: ${HOSTNAME%%.*}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue