I check the status of the vncserver program and found it to be available in both:
/etc/init.d/vncserver and /etc/rc.d/init.d/vncserver
Both works, but which one is the "real" one?
I check the status of the vncserver program and found it to be available in both:
/etc/init.d/vncserver and /etc/rc.d/init.d/vncserver
Both works, but which one is the "real" one?
The "real" one is /etc/init.d/<<script>>
since rc.d is for the system startup.
You can also use service vncserver start
Edit: in some linux distribs, rc.d doesn't exist as it in /etc
$ ls /etc/rc
rc0.d/ rc1.d/ rc2.d/ rc3.d/ rc4.d/ rc5.d/ rc6.d/ rc.local rcS.d/
/sbin/service vncserver
. Or your distro might not provide one - it's definitely there in RHEL/Fedora/CentOS
In Red Hat based distributions, /etc/init.d
is a symbolic link to /etc/rc.d/init.d
, so both listings actually refer to the same exact file.