~ubuntu-branches/ubuntu/natty/sudo/natty

« back to all changes in this revision

Viewing changes to debian/init.d

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2008-08-06 10:41:58 UTC
  • mfrom: (1.2.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20080806104158-dxn13ai2wcln5g3j
Tags: 1.6.9p17-1ubuntu1
* Merge from debian unstable, remaining changes:
 - debian/rules: Disable lecture, enable tty_tickets by default. (Ubuntu
   specific)
 - Add debian/sudo_root.8: Explanation of root handling through sudo.
   Install it in debian/rules. (Ubuntu specific)
 - sudo.c: If the user successfully authenticated and he is in the 'admin'
   group, then create a stamp ~/.sudo_as_admin_successful. Our default bash
   profile checks for this and displays a short intro about sudo if the
   flag is not present. (Ubuntu specific)
 - env.c: Add "http_proxy" to initial_keepenv_table, so that it is kept
   for "sudo apt-get ...". (Ubuntu specific EBW hack, should disappear at
   some point)
* debian/{rules,postinst,sudo-ldap.postinst}: Disable init script
  installation. Debian reintroduced it because /var/run tmpfs is not the
  default there, but has been on Ubuntu for ages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh
2
 
 
3
 
### BEGIN INIT INFO
4
 
# Provides:          sudo
5
 
# Required-Start:    $local_fs $remote_fs
6
 
# Required-Stop:
7
 
# Default-Start:     S 2 3 4 5
8
 
# Default-Stop:      0 1 6
9
 
### END INIT INFO
10
 
 
11
 
N=/etc/init.d/sudo
12
 
 
13
 
set -e
14
 
 
15
 
case "$1" in
16
 
  start)
17
 
        # make sure privileges don't persist across reboots
18
 
        if [ -d /var/run/sudo ]
19
 
        then
20
 
                find /var/run/sudo -exec touch -t 198501010000 '{}' \;
21
 
        fi
22
 
        ;;
23
 
  stop|reload|restart|force-reload)
24
 
        ;;
25
 
  *)
26
 
        echo "Usage: $N {start|stop|restart|force-reload}" >&2
27
 
        exit 1
28
 
        ;;
29
 
esac
30
 
 
31
 
exit 0