Quantcast
Channel: linuxadmin: Expanding Linux SysAdmin knowledge
Viewing all articles
Browse latest Browse all 17812

rc.local blues. Why won't my tiny script run? I feel like that obvious thing is staring me in the face.

$
0
0

Permissions on rc.local itself are ok.

ls -al /etc/rc.local

-rwxr-xr-x 1 root root 331 Jun 15 01:50 /etc/rc.local

This is the script, to run vncserver after boot - it obviously works fine when ran by hand:

cat /root/RunVNC.sh

!/bin/bash

echo date> /root/rc.local.test

/usr/bin/vncserver -geometry 1440x900 -alwaysshared -dpi 96 :1

/usr/bin/vncserver -geometry 1440x900 -alwaysshared -dpi 96 :2

/usr/bin/vncserver -geometry 1440x900 -alwaysshared -dpi 96 :3

/usr/bin/vncserver -geometry 1440x900 -alwaysshared -dpi 96 :4

And this is what's in my /etc/rc.local. Everything along the way is chmod +x.

!/bin/sh -e

/root/RunVNC.sh

exit 0

I'm on Debian 8.0.

submitted by AmericanDerp
[link][3 comments]

Viewing all articles
Browse latest Browse all 17812

Trending Articles