Outils pour utilisateurs

Outils du site


commun:tache_periodique

Ceci est une ancienne révision du document !


Créer une tâche périodique

systemctl list-timers
famille_perms.timer
[Unit]
Description=Execute famille-perms.service tous les jours
 
[Timer]
OnUnitActiveSec=1d
 
[Install]
WantedBy=timers.target
famille_perms.service
[Unit]
Description=Permissions for /media/nas-famille
 
[Service]
Type=oneshot
ExecStart=/usr/bin/find /media/stockage/famille/ -type f -exec /bin/chmod ug+rw {} \;
ExecStart=/usr/bin/find /media/stockage/famille/ -type d -exec /bin/chmod ug+rwx {} \;
ExecStart=/usr/bin/find /media/stockage/famille/ -exec /bin/chmod o-rwx {} \;
ExecStart=/usr/bin/find /media/stockage/famille/ -type d -exec /bin/chmod g+s {} \;
ExecStart=/usr/bin/find /media/stockage/famille/ -exec /bin/chown root.famille {} \;
commun/tache_periodique.1537713795.txt.gz · Dernière modification : (modification externe)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki