Skip to content

Commit

Permalink
use a valid refresh method
Browse files Browse the repository at this point in the history
  • Loading branch information
karencfv committed Dec 19, 2024
1 parent 76ccc81 commit 4f648cf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions smf/zone-network-setup/manifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<service_fmri value='svc:/milestone/network:default' />
</dependency>

<!-- Run after the NDP daemon is online.. -->
<!-- Run after the NDP daemon is online. -->
<dependency name='ndp' grouping='require_all' restart_on='none'
type='service'>
<service_fmri value='svc:/network/routing/ndp:default' />
Expand All @@ -31,7 +31,10 @@
timeout_seconds='0' />

<exec_method type='method' name='stop' exec=':true' timeout_seconds='0' />
<exec_method type='method' name='refresh' exec=':kill -USR1' timeout_seconds='0' />
<!-- We use the same command as the start method as it is safe to rerun. -->
<exec_method type='method' name='refresh'
exec='/opt/oxide/zone-setup-cli/bin/zone-setup common-networking -d %{config/datalink} -s %{config/static_addr} -g %{config/gateway}'
timeout_seconds='0' />

<property_group name='startd' type='framework'>
<propval name='duration' type='astring' value='transient' />
Expand Down

0 comments on commit 4f648cf

Please sign in to comment.