FreeBSD Bugzilla – Attachment 222499 Details for
Bug 253567
sysutils/anacron: does not start after resume
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
call anacron after resume. Needs portvars.diff or obvious minor changes.
anacron.in.diff (text/plain), 990 bytes, created by
Walter von Entferndt
on 2021-02-16 19:15:25 UTC
(
hide
)
Description:
call anacron after resume. Needs portvars.diff or obvious minor changes.
Filename:
MIME Type:
Creator:
Walter von Entferndt
Created:
2021-02-16 19:15:25 UTC
Size:
990 bytes
patch
obsolete
>--- files/anacron.in.orig >+++ files/anacron.in >@@ -1,24 +1,39 @@ > #!/bin/sh > # > # $FreeBSD$ > # > >-# PROVIDE: anacron >+# PROVIDE: %%PORTNAME%% > # REQUIRE: LOGIN >+# KEYWORD: resume > > # >-# Add the following line to /etc/rc.conf to enable anacron: >+# Execute one of the following commands as root to enable %%PORTNAME%%: > # >-# anacron_enable="YES" >+# service %%PORTNAME%% enable >+# sysrc %%PORTNAME%%_enable=YES > # > > . /etc/rc.subr > >-name=anacron >-rcvar=anacron_enable >+name=%%PORTNAME%% >+command="%%PREFIX%%/sbin/%%PORTNAME%%" >+desc="%%COMMENT%%" >+extra_commands=resume >+rcvar=%%PORTNAME%%_enable >+required_vars=syslogd_enable > > load_rc_config $name >-: ${anacron_enable:=NO} >-command="%%PREFIX%%/sbin/anacron" >+: ${%%PORTNAME%%_enable:=NO} > >-run_rc_command "$1" >+if [ $# -gt 0 -a $1 = "resume" ]; then >+ arg=start >+ if checkyesno $rcvar; then >+ info "starting ${name} after resume" >+ fi >+else >+ arg=$1 >+fi >+debug "$name: \$1 = $1, arg = $arg" >+ >+run_rc_command "$arg"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
walter.von.entferndt
:
maintainer-approval?
(
walter.von.entferndt
)
Actions:
View
|
Diff
Attachments on
bug 253567
: 222499 |
222500
|
222501
|
222554
|
223000