~ubuntu-branches/debian/experimental/sysvinit/experimental

« back to all changes in this revision

Viewing changes to debian/bootlogd.postinst

  • Committer: Package Import Robot
  • Author(s): Roger Leigh, Roger Leigh, Michael Stapelberg
  • Date: 2012-07-28 20:09:11 UTC
  • mfrom: (9.1.47 sid)
  • Revision ID: package-import@ubuntu.com-20120728200911-1xa3ydm5a46lyrjd
Tags: 2.88dsf-41+jessie1
[ Roger Leigh ]
* initscripts:
  - Move /etc/nologin and /var/lib/initscripts/nologin to
    /run/nologin.  This means that nologin is always created on
    a writable, available filesystem.  Closes: #660862.
  - Remove code to generate /etc/mtab.  /etc/mtab is now always a
    symbolic link to /proc/mounts.  Closes: #630723.
  - Remove incorrect use of break in case blocks in vars.sh.  Thanks
    to Raphaël Hertzog for this patch.  Closes: #701031.
  - /etc/network/if-up.d/mountnfs: Skip lo if already configured.
    Closes: #705052.  Thanks to Timo Weingärtner.
* sysvinit:
  - Document length limit of 127 in inittab process field.  Thanks
    to Johannes Truschnigg.  Closes: #693960.
* sysv-rc:
  - Fix typo in invoke-rc.d(8).  Closes: #683804.  Thanks to
    Martin-Éric Racine.

[ Michael Stapelberg ]
* systemd: update check to look for /run/systemd/system.
  Closes: #703571
* sysv-rc:
  - Add systemd support to update-rc.d(8) and invoke-rc.d(8).
    Closes: #683084.
  - service(8): use systemctl on machines that run systemd.
    Closes: #704923

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
2
set -e
3
3
 
4
 
update-rc.d bootlogd             start 05 S . >/dev/null || exit $?
5
 
update-rc.d stop-bootlogd-single start 99 S . >/dev/null || exit $?
6
 
update-rc.d stop-bootlogd        start 99 2 3 4 5 . >/dev/null || exit $?
 
4
if [ -x /etc/init.d/bootlogd ]; then
 
5
    update-rc.d bootlogd             start 05 S . >/dev/null || exit $?
 
6
fi
 
7
if [ -x /etc/init.d/stop-bootlogd-single ]; then
 
8
    update-rc.d stop-bootlogd-single start 99 S . >/dev/null || exit $?
 
9
fi
 
10
if [ -x /etc/init.d/stop-bootlogd ]; then
 
11
    update-rc.d stop-bootlogd        start 99 2 3 4 5 . >/dev/null || exit $?
 
12
fi
 
13
 
 
14
#
 
15
# Create initial log files
 
16
#
 
17
for F in /var/log/boot
 
18
do
 
19
        if [ ! -f "$F" ] && touch "$F" >/dev/null 2>&1
 
20
        then
 
21
                echo "(Nothing has been logged yet.)" >| "$F"
 
22
                chown root:adm "$F"
 
23
                chmod 640 "$F"
 
24
        fi
 
25
done
7
26
 
8
27
#DEBHELPER#