Re: systemd script at boot?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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@xxxxxxxxxx>

> 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


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux