mirror of
https://github.com/kardianos/service.git
synced 2025-09-26 21:01:20 +08:00
add arguments to aix-ssrc service
This commit is contained in:

committed by
Daniel Theophanes

parent
b8217ba788
commit
be5c103521
@@ -123,7 +123,11 @@ func (s *aixService) Install() error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = run("mkssys", "-s", s.Name, "-p", path, "-u", "0", "-R", "-Q", "-S", "-n", "15", "-f", "9", "-d", "-w", "30")
|
||||
if len(s.Config.Arguments) > 0 {
|
||||
err = run("mkssys", "-s", s.Name, "-p", path, "-a", strings.Join(s.Config.Arguments, " "), "-u", "0", "-R", "-Q", "-S", "-n", "15", "-f", "9", "-d", "-w", "30")
|
||||
} else {
|
||||
err = run("mkssys", "-s", s.Name, "-p", path, "-u", "0", "-R", "-Q", "-S", "-n", "15", "-f", "9", "-d", "-w", "30")
|
||||
}
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Reference in New Issue
Block a user