Changeset eb9d3f2 for general/sysutils
- Timestamp:
- 06/25/2019 04:51:17 AM (5 years ago)
- Branches:
- elogind
- Children:
- 284586c
- Parents:
- dd16ca4d
- Location:
- general/sysutils
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
general/sysutils/elogind.xml
rdd16ca4d reb9d3f2 199 199 200 200 <screen role="root"><userinput>cat >> /etc/pam.d/system-session << "EOF" && 201 # Begin elogind addition201 <literal># Begin elogind addition 202 202 203 203 session required pam_loginuid.so 204 204 session optional pam_elogind.so 205 205 206 # End elogind addition 206 # End elogind addition</literal> 207 207 EOF 208 208 cat > /etc/pam.d/elogind-user << "EOF" 209 # Begin /etc/pam.d/elogind-user209 <literal># Begin /etc/pam.d/elogind-user 210 210 211 211 account required pam_access.so … … 222 222 password required pam_deny.so 223 223 224 # End /etc/pam.d/elogind-user 224 # End /etc/pam.d/elogind-user</literal> 225 225 EOF</userinput></screen> 226 226 -
general/sysutils/fcron.xml
rdd16ca4d reb9d3f2 241 241 242 242 <screen role="root"><userinput>cat > /usr/bin/run-parts << "EOF" && 243 #!/bin/sh243 <literal>#!/bin/sh 244 244 # run-parts: Runs all the scripts found in a directory. 245 245 # from Slackware, by Patrick J. Volkerding with ideas borrowed … … 288 288 done 289 289 290 exit 0 290 exit 0</literal> 291 291 EOF 292 292 chmod -v 755 /usr/bin/run-parts</userinput></screen> … … 305 305 306 306 <screen role="root"><userinput>cat > /var/spool/fcron/systab.orig << "EOF" 307 &bootrun 01 * * * * root run-parts /etc/cron.hourly307 <literal>&bootrun 01 * * * * root run-parts /etc/cron.hourly 308 308 &bootrun 02 4 * * * root run-parts /etc/cron.daily 309 309 &bootrun 22 4 * * 0 root run-parts /etc/cron.weekly 310 &bootrun 42 4 1 * * root run-parts /etc/cron.monthly 310 &bootrun 42 4 1 * * root run-parts /etc/cron.monthly</literal> 311 311 EOF</userinput></screen> 312 312 -
general/sysutils/logrotate.xml
rdd16ca4d reb9d3f2 126 126 127 127 <screen role="root"><userinput>cat > /etc/logrotate.conf << EOF 128 # Begin of /etc/logrotate.conf128 <literal># Begin of /etc/logrotate.conf 129 129 130 130 # Rotate log files weekly … … 165 165 include /etc/logrotate.d 166 166 167 # End of /etc/logrotate.conf 167 # End of /etc/logrotate.conf</literal> 168 168 EOF 169 169 … … 180 180 181 181 <screen role="root"><userinput>cat > /etc/logrotate.d/sys.log << EOF 182 /var/log/sys.log {182 <literal>/var/log/sys.log { 183 183 # If the log file is larger than 100kb, rotate it 184 184 size 100k … … 188 188 /bin/killall -HUP syslogd 189 189 endscript 190 } 190 }</literal> 191 191 EOF 192 192 … … 196 196 197 197 <screen role="root"><userinput>cat > /etc/logrotate.d/example.log << EOF 198 file1198 <literal>file1 199 199 file2 200 200 file3 { … … 203 203 ... 204 204 endscript 205 } 205 }</literal> 206 206 EOF 207 207
Note:
See TracChangeset
for help on using the changeset viewer.