Skip to content

Commit be5c103

Browse files
feiyuwkardianos
authored andcommitted
add arguments to aix-ssrc service
1 parent b8217ba commit be5c103

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

service_aix.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,11 @@ func (s *aixService) Install() error {
123123
if err != nil {
124124
return err
125125
}
126-
err = run("mkssys", "-s", s.Name, "-p", path, "-u", "0", "-R", "-Q", "-S", "-n", "15", "-f", "9", "-d", "-w", "30")
126+
if len(s.Config.Arguments) > 0 {
127+
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")
128+
} else {
129+
err = run("mkssys", "-s", s.Name, "-p", path, "-u", "0", "-R", "-Q", "-S", "-n", "15", "-f", "9", "-d", "-w", "30")
130+
}
127131
if err != nil {
128132
return err
129133
}

0 commit comments

Comments
 (0)