Hot answers tagged startup-scripts
Your understanding is correct. When your company gets to the size that you need to bring in a dedicated Windows sysadmin they're going to be unhappy that you did this. I can't imagine that your logic is so complex that it couldn't be solved by the built-in functionality in Group Policy. Security Group filtering, WMI filtering (which is ...
You probably have a carriage return (^M) at the end of your #! line. The format of the #! line is very strict, and carriage return is not allowed there, unless your interpreter is actually called /bin/bash^M There will never be carriage returns in a file created with a proper unix editor, unless you go out of your way to add them. When editing an existing ...
The services on a CentOS operating system are managed using chkconfig. Use chkconfig --list to review the currently managed services. You can mark a service to automatically start at a defined runlevel by issuing: # chkconfig someservice on Read the chkconfig(8) manpage for the details.
In your shell initialization script (e.g., ~/.bash_profile) add last --ip --limit 10
It depends on the init daemon you are using. For SysVInit you can assume something like the following to happen when you change the runlevel to 0: rl=0 for k in /etc/rc$rl.d/K*; do $k stop done for s in /etc/rc$rl.d/S*; do $s start done I can't see a contradiction of the sentence you cited to the things you said above.
Only top voted, non community-wiki answers of a minimum length are eligible