[systemd-devel] systemd inquiry

Mark Hounschell markh at compro.net
Mon Apr 9 06:59:39 PDT 2012


On 04/05/2012 05:23 PM, Colin Guthrie wrote:
> 'Twas brillig, and Mark Hounschell at 05/04/12 18:26 did gyre and gimble:
>> I'm not a systemd developer but I am trying to use it in place of
>> sysvinit to create a dedicated "run-level" for our application. Is this
>> list an appropriate place to inquire about problems I have?
>
> Yup, ask questions here, but make sure you've read up on the various
> articles and documentation and such like on
> http://www.freedesktop.org/wiki/Software/systemd first :)
>

Thanks, I've read a lot but nowhere did I find pointers to do what I 
need to do. So I thought I would just try to understand the process of 
getting to "single-user" mode. I expected  that I would be able to look 
at /lib/systemd/system/single.target for a starting point but it's just 
a link to /dev/null? I was then lost....

So I just created a test target that I expected/hoped would just start a 
single mingetty on tty1. It did do that but I also got agettys on ttys 
2-6. I also got some unwanted Console-Kit and Polkit stuff running that 
I also do not want or need. Again, I'm trying to understand how to 
create a run-level under which everything running is controlled by me.

My /etc/systemd/system/test.target file

Description=TEST run-level-4 target
Wants=mingetty at tty1.service
DefaultDependencies=no
AllowIsolate=yes
[Install]
Alias=test.target


and mingetty\@.service file:



[Unit]
Description=mingetty on %I

[Service]
Environment=TERM=linux
ExecStart=-/sbin/mingetty %I
Restart=always
RestartSec=0
UtmpIdentifier=%I
TTYPath=/dev/%I
TTYReset=yes

Environment=LANG= LANGUAGE= LC_CTYPE= LC_NUMERIC= LC_TIME= LC_COLLATE= 
LC_MONETARY= LC_MESSAGES= LC_PAPER= LC_NAME= LC_ADDRESS= LC_TELEPHONE= 
LC_MEASUREMENT= LC_IDENTIFICATION=

KillSignal=SIGHUP

[Install]
Alias=mingetty@%I.service

Thanks for any pointers
Mark


More information about the systemd-devel mailing list