39 Commits

Author SHA1 Message Date
Franco Fichtner
da690969c4 rc: move all template generation to early
It's unlikely the config.xml will change and backup scripts in
early are going to need it anyway.
2019-02-10 13:14:24 +01:00
Franco Fichtner
c536751114 rc: squelch stray "OK" in boot sequence for now 2019-01-21 09:29:30 +01:00
Franco Fichtner
a285dc554b openvpn: small cleanup 2018-12-17 08:46:55 +01:00
Michael Steenbeek
0d7001ae68 Remove legacy SMTP notices (for #2919) (#3031)
* Remove remaining calls to notify_via_smtp()
* Remove SMTP notices code
* Remove SMTP notifications config from System/Settings/Notifications
* Move system beep settings to System/Settings/Miscellaneous, remove System/Settings/Notifications
2018-12-16 19:34:20 +01:00
Franco Fichtner
2d0075de05 system: 4/4; closes #2876 2018-11-17 15:09:43 +01:00
Franco Fichtner
664cad48c9 system: 3/4 #2876 2018-11-17 15:04:09 +01:00
Franco Fichtner
eccc9eea1f system: part 2/4 #2876 2018-11-17 15:01:26 +01:00
Franco Fichtner
8462c5457f system: lower part for #2876 1/4
Purge the backup file if mode is set to "disabled" to avoid any
restore on the next boot since we only have a stale backup then.
2018-11-17 14:56:55 +01:00
Franco Fichtner
702f9af71f openvpn: yes, this script is useful
But maybe it should be optional rather than mandatory /
with convoluted logic to figure out what to do.
2018-10-22 11:27:07 +02:00
Franco Fichtner
84f35e7088 system: start to cleanup legacy notifications #2408 2018-09-28 17:59:46 +02:00
Franco Fichtner
993b205cb6 unbound: cache dump / load / flush 2018-09-23 10:04:09 +02:00
Franco Fichtner
faaafb136c rc: suppress message of service not enabled 2018-06-20 15:48:26 +02:00
Franco Fichtner
12dae7ec64 rc: better rrd backup, avoids writing empty files 2018-06-13 17:59:49 +00:00
Franco Fichtner
9f407a85d3 rc: rrd backup script fix closes #2462 2018-06-13 15:46:12 +00:00
Franco Fichtner
192f137cf9 rc: RRD XML export formerly known as 58c923b7 #2462 2018-06-13 17:40:37 +02:00
Franco Fichtner
aa3523263d rc: improve netflow backup, closes #2461 2018-06-13 15:39:12 +02:00
Franco Fichtner
cf91b51633 rc: migrate files to new rc.syshook layout 2018-06-11 05:24:41 +00:00
Franco Fichtner
5dd6901b2b rc: sprinkle more exec, better rc.syshook usage in shutdown 2018-06-11 00:03:43 +02:00
Franco Fichtner
177ca71909 system: move carp to rc.syshook
Cut out the middleman that is rc.carp and allow fully
plugabble calls to rc.syshook carp instead...

Make the "return" statements actual errors, and change
the level for the devd script to 101 to align with the
other custom hooks that we use.

CC: @adschellevis
2018-06-10 19:44:17 +00:00
Franco Fichtner
43966ce7b7 rc: pluggable backup via rc.syshook
To achieve this pass additional arguments and also parse
a subdirectory to find the appropriate scripts.  Eventually
it should make exclusive use of the directories.
2018-06-10 19:08:05 +00:00
Franco Fichtner
2b9ee69f10 rc: IPv6 is trigger-happy, we only need this once
The unique file id was used to prevent overwrites from different
interfaces but we can just use the argument in the file so that
everything is rewritten in place causing the renewals to boil down
to one.

See a previous run with a WAN-only setup:

  >>> Invoking start script 'newwanip'
  Reconfiguring IPv4: OK
  Reconfiguring IPv6: OK
  Reconfiguring IPv6: OK
  Reconfiguring IPv6: OK
  Reconfiguring IPv6: OK
  Reconfiguring IPv6: OK
  >>> Invoking start script 'freebsd'

While here, also display the interface for clarity now:

  >>> Invoking start script 'newwanip'
  Reconfiguring IPv4 on em0: OK
  Reconfiguring IPv6 on em0: OK
  >>> Invoking start script 'freebsd'
2018-04-20 08:18:32 +02:00
Franco Fichtner
c371155455 rc: since configctl prints "OK" we need a sensible preamble 2018-01-17 11:24:10 +01:00
Franco Fichtner
3869385096 rc: defer newwanip not exectued during boot
PR: https://forum.opnsense.org/index.php?topic=6891.0
2018-01-16 20:10:01 +01:00
Franco Fichtner
c43ef0963a rc: use literal * in shell invoke 2018-01-13 15:18:57 +01:00
Franco Fichtner
ed8ec2d92d rc: switch a few things around, related to previous 2018-01-13 15:05:16 +01:00
Franco Fichtner
533ccbde0c rc: backup DUID for /var MFS et al
Make sure to delete the backup prior to backing up to mimick
the current system state.  Same goes for restore, no backup
means remove the DUID to sync the system state to what it was.
2017-12-27 13:35:35 +00:00
Franco Fichtner
93d68f77d7 rc: not as bad as first thought, rc.recover runs without backend 2017-05-25 12:23:36 +02:00
Franco Fichtner
ed66e8728d rc: properly create php template on first boot
rc.recover doesn't work like that then, need to move to /bin/sh.

PR: https://forum.opnsense.org/index.php?topic=5213.0
2017-05-24 20:28:46 +02:00
Franco Fichtner
f499c3dd6e rc: cosmetics 2017-05-17 06:04:19 +02:00
Franco Fichtner
355939b228 rc: improve print of syshook invokes 2017-05-15 06:37:11 +02:00
Franco Fichtner
a3cc4aabfd src: whitespace sweep 2017-05-12 09:49:47 +02:00
Franco Fichtner
45e043b103 rc: use rc.syshook for some for our important tasks 2017-05-09 08:10:10 +02:00
Franco Fichtner
23c2cce667 rc: 20/start corresponds with 80/stop 2017-05-09 07:57:49 +02:00
Franco Fichtner
9c88e64134 system: always use reload except for deferred startup
PR: https://forum.opnsense.org/index.php?topic=5140.0
2017-05-09 07:49:27 +02:00
Franco Fichtner
b2ea63317e beep: move beep to syshook (mostly) 2017-05-09 07:18:56 +02:00
Franco Fichtner
15f4866246 rc: align this even more... 2017-05-02 07:30:01 +02:00
Franco Fichtner
f399f3faa7 rc: tweak previous, better name for rc script 2017-05-02 06:09:22 +02:00
Franco Fichtner
4c01a93510 rc: small tweaks on previous 2017-05-02 05:55:58 +02:00
Ad Schellevis
7596738104 CARP, add option "Disable preempt", move preempt to later boot stage. for https://github.com/opnsense/core/issues/1557 2017-05-01 20:25:40 +02:00