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

systemd service environment



Nicolas George [2017-02-27 19:09:15+01] wrote:

> I do not know what shell systemd uses to start user programs:

It doesn't use shell at all. Systemd has its own parser for units'
ExecStart= lines and it's a lot more restricted than shells'. If more
control is needed the usual way is to have a launcher script:

    ExecStart=/usr/bin/my-service start
    ExecStop=/usr/bin/my-service stop

-- 
/// Teemu Likonen   - .-..   <https://keybase.io/tlikonen> //
// PGP: 4E10 55DC 84E9 DFF6 13D7 8557 719D 69D3 2453 9450 ///

Attachment: signature.asc
Description: PGP signature


Reply to: