Add custom script to systemd booup

I need to add my service to systemd boot process. How can I do so?

On 2011-11-23 09:46, xolve wrote:
>
> I need to add my service to systemd boot process. How can I do so?

Ha! Almost nobody knows. Systemd is new.

In the factory mail list there are a lot of posts about this and docs.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

Have a read of openSUSE:Systemd status - openSUSE

Read ‘Creation of a service file’ and ‘Enabling Services’. It’s still early days with this new init-system, so you may have a steep learning curve ahead of you.

Yes, interesting reading.

And it is here where newbies who did not quite understand the old system can beat the old hands that are not quick enough to become up to date.
Come on newbies, read the docs and teach us!

I didn’t read the documents. However I was able to add to startup by adding symlink like this to /etc/init.d/rc5.d/:

S<number><name of the script in /etc/init.d>

Much like old sysvinit

But that is of course not the native way to o it under systemd. It is a way to deny that systemd exists.

On 2011-11-24 11:36, hcvv wrote:
>
> But that is of course not the native way to o it under systemd. It is a
> way to deny that systemd exists.

It is even incorrect under the old system.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

O yes, it is a broken, prone to problems and likeble to disappear on the wrong moment, way of doing it :wink:

I also guess that this is not ok. But at present it solves my problem.

Also YAST has still the old sysvinit editor.

I also guess that this is not ok. But at present it solves my problem.

Also YAST has still the old runlevel editor.

Also YAST has still the old runlevel editor.

Good point. Work in progress I guess.