~ubuntu-branches/ubuntu/dapper/screen/dapper-updates

« back to all changes in this revision

Viewing changes to debian/init

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2005-02-28 15:51:10 UTC
  • Revision ID: james.westby@ubuntu.com-20050228155110-pnogs5v3mzucngly
Tags: 4.0.2-4.1ubuntu2
debian/init: Create /var/run/screen if it does not exist. This makes
screen work even if /var/run is mounted at a tmpfs. (Ubuntu #6788)

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 
12
12
case "$1" in
13
13
start)
 
14
    if [ ! -d $SCREENDIR ]; then
 
15
        mkdir -p $SCREENDIR
 
16
        chown root:utmp $SCREENDIR
 
17
        chmod 775 $SCREENDIR
 
18
    fi
14
19
    if find $SCREENDIR -type p | grep '^' >/dev/null; then
15
20
        log_begin_msg 'Cleaning up stale screen sessions... '
16
21
        find $SCREENDIR -type p -print0 | xargs -0 rm -f