Skip to content

Init

Afficher les services systemd

systemctl list-dependencies
 

Créer un service (RedHat/Centos)

vim /etc/systemd/system/gammu.service
    # Systemd unit file for Gammu
    [Unit]
    Description=Gammu SMS
    After=network.target

    [Service]
    Type=forking

    ExecStart=/etc/init.d/gammu-smsd-init start
    ExecStop=/etc/init.d/gammu-smsd-init stop

    User=gammu
    Group=gammu

    [Install]
    WantedBy=multi-user.target

Activation du service

systemctl start gammu.service
systemctl enable gammu.service