-
rmustacc
-
rmustaccBut that's mostly me guessing.
-
arailooks good, thanks.
-
araiTritonDataCenter/pkgsrc #356 In digging into the SMF manifest, I noticed that the process is being started via /opt/local/lib/svc/method/mariadb. What reasons are there that the process isn't being directly managed via SMF?
-
toastersonarai: thats pretty normal in order to handle pre startup actions etc.
-
araitoasterson: services needing to be debugged before they start, or the use of a script wrapping the binary being managed?
-
toastersonthe use of a script wrapper :) Services tend to wokr usually :)
-
araiThat's what I was hoping too.
-
toastersonAnd no we don't need a pid technically. But some mariadb tooling might need it. The OS has contracts to reap the processes down.
-
araiPerhaps I'm misreading this: What pre-startup actions are being performed by this specific startup script? In reviewing the code, it's literally setting a variable for a PID file, configuring a file descriptor limit and then, depending on the first parameter to the script, starting the process, or optionally killing it based on the stored PID.
-
araiRight, forgot about that.
-
araiAsking a mariadb dev, one moment.
-
toastersonOpenIndiana also does some install tasks in it's scrpt.
-
araiAt first glance, the cleanest solution to this problem appears to be bypassing the script and just managing the binary directly via smf, but you make a very valid point about non-illumos related tooling potentially expecting a pidfile somewhere.
-
toastersonBut I also don't see why we would need PIDFILE
-
toastersonalthough mysqld_safe seems to need it
-
toastersonalso there is the possibilty to configure properties via SMF and have the script react to that
-
araiThe dev I spoke with doesn't know of any specific requirement of mariadb tooling requiring a pid file.
-
pjustice`