Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cron unter systemd
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
deranonyme
Guru
Guru


Joined: 09 Jul 2005
Posts: 508

PostPosted: Thu Dec 25, 2014 10:52 am    Post subject: Cron unter systemd Reply with quote

Als ich vor einiger Zeit schon auf systemd umgestellt habe ist mir entgangen das cron ja gar nicht mehr gestartet wird. Da aber logrotate nicht mehr gearbeitet habt habe ich mich damit beschäftigen müssen und festgestellt das es daran liegt das cron nicht läuft. Aber ich hab nirgends eine Möglichkeit gefunden etwas vergleichbares zu cron zu starten. Wer hilft mir auf die Sprünge wie ich eine Cronfuntion oder logrotate starten kann.

Frank
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6747

PostPosted: Thu Dec 25, 2014 12:36 pm    Post subject: Reply with quote

Bringen die meisten cron ebuilds nicht ihre .service-Files mit? dcron beispielsweise tut es.
Alternativ kannst Du systemd-cron aus dem mv-overlay verwenden: Das "transformiert" Deine crontab in systemd timer units.
Back to top
View user's profile Send private message
Klaus Meier
Advocate
Advocate


Joined: 18 Apr 2005
Posts: 2908
Location: Bozen

PostPosted: Thu Dec 25, 2014 1:53 pm    Post subject: Reply with quote

Musst du starten mit systemd enable cron. Du musst bei systemd noch einige andere Dienste aktivieren. Schau dir am besten mal dies hier an: http://wiki.gentoo.org/wiki/Systemd
Back to top
View user's profile Send private message
deranonyme
Guru
Guru


Joined: 09 Jul 2005
Posts: 508

PostPosted: Thu Dec 25, 2014 3:29 pm    Post subject: Reply with quote

Code:
systemctl enable vixie-cron.service

war die magische Zeile.

Ich dachte immer mit
Code:
systemctl  --all
würden alle verfügbaren Services angezeigt, aber da war cron nicht dabei. Erst nach "enable" tauchte er auf. Aber egal es läuft jetzt.
Back to top
View user's profile Send private message
musv
Advocate
Advocate


Joined: 01 Dec 2002
Posts: 3337
Location: de

PostPosted: Wed Dec 31, 2014 2:17 pm    Post subject: Reply with quote

Du kannst auch einfach nach den Service-Dateien suchen.

Code:
find /usr/lib/systemd/system/ -iname "*cron*"

sollte Dir anzeigen, was du suchst.
Back to top
View user's profile Send private message
sirro
Veteran
Veteran


Joined: 20 Jul 2003
Posts: 1472
Location: aachen.nrw.de.eu

PostPosted: Fri Jan 02, 2015 9:07 am    Post subject: Reply with quote

deranonyme wrote:
Ich dachte immer mit
Code:
systemctl  --all
würden alle verfügbaren Services angezeigt, aber da war cron nicht dabei. Erst nach "enable" tauchte er auf.


Hab unter Gentoo kein systemd, aber unter Debien steht bei "systemctl --all" am Ende noch ein Hinweistext wie man alle unit-files angezeigt bekommt:

Code:
317 loaded units listed.
To show all installed unit files use 'systemctl list-unit-files'.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum