[arch-general] systemd script at boot?

Leonardo Dagnino leodag.sch at gmail.com
Sat Jul 28 19:26:37 EDT 2012


You can create a service that runs your shell script at boot.
I think it would be something like this:

/etc/systemd/system/a-name-you-want.service

[Unit]
Description=a-name-you-want

[Service]
ExecStart=/path-to-your-script

[Install]
WantedBy=multi-user.target


2012/7/28 jsteel <mail at jsteel.org>

> Hi,
>
> Can systemd run a bash script at/after boot without having to install
> initscripts-systemd for compatibility with rc.local? I assume
> initscripts-systemd will be depreciated eventually so wonder if there
> is a native way to do this, or if this is the workaround for now.
>
> Thanks,
>
> jsteel
>



-- 
Leonardo Dagnino


More information about the arch-general mailing list