[SGVLUG] runlevel 1 backup
John E. Kreznar
jek at ininx.com
Sat Jul 5 14:49:13 PDT 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Don Saxton <dsaxton at pacbell.net> writes:
> I have a script for a tar backup. It should be run at init 1 on this
> headless machine with ssh access.
> Obviously there is no sshd at runlevel 1.
> So how can I perform this sequence: telinit 1;backup; telinit 3 ?
Ah- fun problem, succinctly stated.
Looks like everything on such a command line after the "telinit 1;"
would be lost when the ssh session is killed by entering run level 1,
right?
Are you willing to tailor /etc/inittab to support this function?
What's in there now for run level 1 on your headless machine?
I'm wondering if setting environment variable SUSHELL to get sulogin
to do something special after the telinit 1 might be a workable
solution here. If it were me, since I'm running xen now, I would
create throw-away machines to familiarize myself with the exact
sequence of events upon telinit 1.
- --
John E. Kreznar jek at ininx.com 9F1148454619A5F08550 705961A47CC541AFEF13
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8+ <http://mailcrypt.sourceforge.net/>
iD8DBQFIb+w8YaR8xUGv7xMRAqfzAJwPZCoidxgbMY+9trqFbt1otlC3lwCcDGlN
jj8bxvecCa55OcIFb2F12eQ=
=5wJy
-----END PGP SIGNATURE-----
More information about the SGVLUG
mailing list