Hi, another way to do it would be to create an rsyslog rule ( /etc/rsyslog.d/20-slurm.conf ) like this:
if $programname contains_i 'slurmd' then /var/log/slurm/slurmd.log &~ p.s. The rule can probably be improved now that I look at it.. // Johan > From: "Danny Rotscher" <[email protected]> > To: "slurm-dev" <[email protected]> > Sent: Monday, April 27, 2015 4:06:55 PM > Subject: [slurm-dev] Syslog and file logging > Hallo, > it is possible to log in syslog and in a logfile?! > In /src/common/log.h they say "configurable logging for slurm: log to file, > stderr and/or syslog", but how can I configure it. > Should this work: "SlurmctldLogFile=<file>,none"? (slurm.conf) > Thanks and kind regards > Danny Rotscher > -- > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Danny Rotscher > Technische Universitaet Dresden > Center for Information Services and High Performance Computing > Distributed and Data Intensive Computing > 01062 Dresden > Tel.: +49 351 463-35853 > Fax : +49 351 463-37773 > E-Mail: [email protected] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
