SYSTEMD-RC-LOCAL-GENERATOR(8) systemd-rc-local-generator SYSTEMD-RC-LOCAL-GENERATOR(8)NAME
systemd-rc-local-generator - Compatibility generator for starting /etc/rc.local and /usr/sbin/halt.local during boot and shutdown
SYNOPSIS
/lib/systemd/system-generators/systemd-rc-local-generator
DESCRIPTION
systemd-rc-local-generator is a generator that checks whether /etc/rc.local exists and is executable, and if it is pulls the
rc-local.service unit into the boot process. This unit is responsible for running this script during late boot. Note that the script will
be run with slightly different semantics than the original System V version, which was run "last" in the boot process, which is a concept
that does not translate to systemd. The script is run after network.target, but in parallel with most other regular system services.
systemd-rc-local-generator also checks whether /usr/sbin/halt.local exists and is executable, and if it is pulls the halt-local.service
unit into the shutdown process. This unit is responsible for running this script during later shutdown.
Support for both /etc/rc.local and /usr/sbin/halt.local is provided for compatibility with specific System V systems only. However, it is
strongly recommended to avoid making use of these scripts today, and instead provide proper unit files with appropriate dependencies for
any scripts to run during the boot or shutdown processes.
systemd-rc-local-generator implements systemd.generator(7).
SEE ALSO systemd(1), systemctl(1)systemd 237SYSTEMD-RC-LOCAL-GENERATOR(8)
Check Out this Related Man Page
SYSTEMD-RC-LOCAL-GENERATOR(8) systemd-rc-local-generator SYSTEMD-RC-LOCAL-GENERATOR(8)NAME
systemd-rc-local-generator - Compatibility generator for starting /etc/rc.local and /usr/sbin/halt.local during boot and shutdown
SYNOPSIS
/lib/systemd/system-generators/systemd-rc-local-generator
DESCRIPTION
systemd-rc-local-generator is a generator that checks whether /etc/rc.local exists and is executable, and if it is pulls the
rc-local.service unit into the boot process. This unit is responsible for running this script during late boot. Note that the script will
be run with slightly different semantics than the original System V version, which was run "last" in the boot process, which is a concept
that does not translate to systemd. The script is run after network.target, but in parallel with most other regular system services.
systemd-rc-local-generator also checks whether /usr/sbin/halt.local exists and is executable, and if it is pulls the halt-local.service
unit into the shutdown process. This unit is responsible for running this script during later shutdown.
Support for both /etc/rc.local and /usr/sbin/halt.local is provided for compatibility with specific System V systems only. However, it is
strongly recommended to avoid making use of these scripts today, and instead provide proper unit files with appropriate dependencies for
any scripts to run during the boot or shutdown processes.
systemd-rc-local-generator implements systemd.generator(7).
SEE ALSO systemd(1), systemctl(1)systemd 237SYSTEMD-RC-LOCAL-GENERATOR(8)
I need a script to halt at the end and wait for the user to hit a key...could be any ket or enter. I know it can be done but I am just starting out.. Thanks (9 Replies)
Hi
I am trying to write a login script for network based clients (OSX) that looks up local accounts eg admin, root, etc and exits the script so that it doesn't apply to them. Then for everyone else I make folders eg movies, music, etc that are placed in local harddrive rather than the default... (11 Replies)
I have a script that generates an output file after pulling data from a local DB on one of my boxes. There are other nearly-identical boxes on the network, each with their own local DB, and I'd like to run the script there too. Copying the script to each box and then running them individually... (11 Replies)
I want to make a script to shutdown a unixware computer from other user then root. In Sco version i use "as root" but in the unixware i don't know.
Please help me.
10x (12 Replies)
I have wriiten the following scripts in UNIX. The file name is bk.ksh
rman target=/ << EOF
RUN {
SHUTDOWN IMMEDIATE
STARTUP MOUNT
ALLOCATE CHANNEL ch1 device TYPE
DISK FORMAT '/u01/oradata/ora/%U';
BACKUP DATABASE PLUS ARCHIVELOG;
SQL'ALTER DATABASE OPEN'
;}
EXIT;
EOF
when i try... (8 Replies)
Hello
i am working on a project here is part of script that i need a help in
get process SpectroSERVER current size if it exceed 3850 MB then
#pkill -TERM ArchMgr
and wait to succfull shutdown message from the log file to proceed to the next step
#tail -f $SPECROOT/SS/DDM/ARCHMGR.OUT... (7 Replies)
Friends ,
I am going to update the oracle version from '10.2.0.1.0' to '10.2.0.4.0' in AIX 6.1 . During upgradation it needs to run the following script as root user :
sh /usr/sbin/slibclean
But when this script is run then it shows the following error :
# sh /usr/sbin/slibclean
sh:... (7 Replies)
Hi experts,
I'd like to generate the table/file containing:
number of milliseconds elapsed since midnight till midnight.
It should contain 5 columns (hours minutes seconds milliseconds):
Table will have theoretically 86 400 000 rows.
My question is , is there somewhere the file or source... (7 Replies)
Looking to automate some commands to run at boot and poweroff in a startup/shutdown script.
How do I place it on the system so that it will be run automatically?
I don't want to use cron, not quite specific enough, random times when I may boot or shutdown.
---------- Post updated at 10:47 PM... (8 Replies)
My staff seem to have a habit of leaving thier PCs on over night so I need to write a short script to shutdown any XP clients logged into the local samba domain that I can run as a cron job at a set time.
I can list the connected clients and their IP addresses with:
$ smbstatus -b
Samba... (6 Replies)
Hello,
I have multiple scripts (vlc1, vlc2,...vlc5) and as I do not know how to run them as upstart processes, I entered my script links into rc.local file.
Here is the sample one for process vlc1:
$ nano /etc/rc.local
added below line into rc.local
/var/bin/./vlc1 &
Port nr of vlc1... (7 Replies)
I am having check.sh script and check.service which I include to /etc/systemd/system/
chmod 744 /usr/local/bin/check.sh
chmod 664 /etc/systemd/system/check.service
systemctl daemon-reload
systemctl enable check.servicecheck.sh:
websockify 5555 localhost:7000 &
date >... (9 Replies)
Hello,
I have a backup script that runs an rsync backup to an external drive. I use the script frequently on Windows and Linux and have installed it on a Mac. The script has an option to run shutdown after the backup has completed. Since backup can take hours to run, this is an option that is... (10 Replies)
Hello
I use a bash script to creating the hosts file /etc/hosts
But there is a bug inside my output and I want to fix this.
My Array looks like this:
205,IP 111.122.133.20
205,HOST2 unas
205,HOST1 unas15533
205,COMMENT # UNAS
775,IP ... (9 Replies)