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

Re: Envoi automatique de mail après le démarrage par systemd



Le samedi 13 novembre 2021 à 16:21 +0100, steve a écrit :
> Bonjour,
> 
Bonjour,

Je ne suis pas très au point à propos de systemd, mais j'ajouterais 

> 2) création du service dans /lib/systemd/system:
> 
> cat mon-ip.service
> [Unit]
> Description=Envoi ip via mail
After=network.target
> 
> [Service]
> Type=oneshot
> ExecStart=/home/steve/bin/myip.sh
> 
> [Install]
> WantedBy=multi-user.target
> 
> 

> 
> Merci pour toute aide.
De rien et peut-être inutile.
> 
> S
Christophe


Reply to: