update irc server module

This commit is contained in:
Z. Cliffe Schreuders
2022-07-29 12:27:02 +01:00
parent 371d0597bf
commit eb59300b38
3 changed files with 13 additions and 7 deletions

View File

@@ -1,2 +1,2 @@
include irc2::install
include irc2::config
include irc2::service

View File

@@ -1,6 +0,0 @@
class irc2::config {
service { 'ircd-irc2':
enable => true,
ensure => 'running',
}
}

View File

@@ -0,0 +1,12 @@
class irc2::service {
exec { 'irc2-systemd-reload':
command => 'systemctl daemon-reload',
path => [ '/usr/bin', '/bin', '/usr/sbin' ],
refreshonly => true,
}->
service { 'ircd-irc2':
enable => true,
ensure => 'running',
provider => systemd,
}
}