OLD | NEW |
1 define discourse::customservice( | 1 define customservice( |
2 $command, | 2 $command, |
3 $user, | 3 $user, |
4 $env = [], | 4 $env = [], |
5 $workdir = undef | 5 $workdir = undef |
6 ) { | 6 ) { |
7 file {"/etc/init.d/$name": | 7 file {"/etc/init.d/$name": |
8 ensure => present, | 8 ensure => present, |
9 owner => root, | 9 owner => root, |
10 group => root, | 10 group => root, |
11 mode => '0755', | 11 mode => '0755', |
12 content => template('discourse/init-customservice.erb'), | 12 content => template('customservice/init-customservice.erb'), |
13 notify => Service["$name"] | 13 notify => Service["$name"] |
14 } | 14 } |
15 | 15 |
16 service {$name: | 16 service {$name: |
17 ensure => running, | 17 ensure => running, |
18 hasstatus => true, | 18 hasstatus => true, |
19 enable => true, | 19 enable => true, |
20 require => File["/etc/init.d/$name"] | 20 require => File["/etc/init.d/$name"] |
21 } | 21 } |
22 } | 22 } |
OLD | NEW |