Lines Matching refs:script

111  * is connected during execution of a procedure script. /dev/null is
166 char script[PATH_MAX];
317 * --> Do not perform any script locking
918 * Run a preremove script if one is provided by the package.
919 * Don't execute preremove script if only updating the DB.
920 * Don't execute preremove script if files are not being deleted.
923 /* update the lock - at the preremove script */
926 /* execute preremove script if one is provided */
927 (void) snprintf(script, sizeof (script), "%s/preremove", pkgbin);
928 if (access(script, F_OK) != 0) {
929 /* no script present */
933 /* not deleting files: skip preremove script */
934 echoDebug(DBG_PKGREMOVE_POC_NODEL, pkginst, script,
937 /* updating db only: skip preremove script */
938 echoDebug(DBG_PKGREMOVE_POC_DBUPD, pkginst, script,
941 /* script present and ok to run: run the script */
945 echoDebug(DBG_PKGREMOVE_EXEPOC_GZ, pkginst, script);
948 echoDebug(DBG_PKGREMOVE_EXEPOC_LZ, pkginst, script,
955 script, NULL), ERR_PREREMOVE);
958 PROC_USER, PROC_GRP, SHELL, script,
1006 * Execute postremove script, if any
1007 * Don't execute postremove script if only updating the DB.
1008 * Don't execute postremove script if files are not being deleted.
1011 /* update the lock - at the postremove script */
1014 /* execute postremove script if one is provided */
1015 (void) snprintf(script, sizeof (script), "%s/postremove", pkgbin);
1016 if (access(script, F_OK) != 0) {
1017 /* no script present */
1021 /* not deleting files: skip postremove script */
1022 echoDebug(DBG_PKGREMOVE_PIC_NODEL, pkginst, script,
1025 /* updating db only: skip postremove script */
1026 echoDebug(DBG_PKGREMOVE_PIC_DBUPD, pkginst, script,
1029 /* script present and ok to run: run the script */
1033 echoDebug(DBG_PKGREMOVE_EXEPIC_GZ, pkginst, script);
1036 echoDebug(DBG_PKGREMOVE_EXEPIC_LZ, pkginst, script,
1043 PROC_GRP, SHELL, "-x", script, NULL),
1047 PROC_GRP, SHELL, script, NULL),
1125 char script[PATH_MAX];
1141 /* locate class action script to execute */
1142 (void) snprintf(script, sizeof (script), "%s/r.%s", pkgbin, aclass);
1143 if (access(script, F_OK) != 0) {
1144 (void) snprintf(script, sizeof (script), "%s/r.%s",
1146 if (access(script, F_OK) != 0)
1147 script[0] = '\0';
1149 if (script[0] != '\0') {
1187 if (!ept->ftype || (ept->ftype == '^' && !script[0])) {
1194 * no class action script is present. It is the CAS's
1205 } else if (script[0]) {
1207 * If there's a class action script, just put the
1280 if (script[0]) {
1282 set_ulimit(script, ERR_CASFAIL);
1285 CAS_GRP, SHELL, "-x", script, NULL),
1289 CAS_GRP, SHELL, script, NULL),