/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
#define BOP_GETPARM(bnode, n, b, l) ((*(bnode)->ops->getparm)((bnode),(n),(b),(l)))
#define BOP_RESTARTP(bnode) ((*(bnode)->ops->restartp)((bnode)))
#define BOP_HASCORE(bnode) ((*(bnode)->ops->hascore)((bnode)))
+#define BOP_PROCSTARTED(bnode,p) ((*(bnode)->ops->procstarted)((bnode),(p)))
struct bnode_proc;
int (*delete) ( struct bnode * );
int (*procexit) ( struct bnode *, struct bnode_proc * );
int (*getstring) ( struct bnode *, char *abuffer, afs_int32 alen );
- int (*getparm) ( struct bnode *, afs_int32 aindex, char *abuffer,
+ int (*getparm) ( struct bnode *, afs_int32 aindex, char *abuffer,
afs_int32 alen);
int (*restartp) ( struct bnode *);
int (*hascore) ( struct bnode *);
+ int (*procstarted) ( struct bnode *, struct bnode_proc * );
};
struct bnode_type {
char killSent; /* have we tried sigkill signal? */
};
-/* this struct is used to construct a list of dirpaths, along with
- * their recommended permissions
+/* this struct is used to construct a list of dirpaths, along with
+ * their recommended permissions
*/
struct bozo_bosEntryStats {
const char *path; /* pathname to check */
#ifdef AFS_NT40_ENV
#define BOSEXIT_RESTART 0xA0
#define BOSEXIT_DORESTART(code) (((code) & ~(0xF)) == BOSEXIT_RESTART)
-#define BOSEXIT_NOAUTH_FLAG 0x01
-#define BOSEXIT_LOGGING_FLAG 0x02
#endif
/* max time to wait for fileserver shutdown */
extern struct bnode *bnode_FindInstance(char *aname);
extern int bnode_WaitStatus(struct bnode *abnode, int astatus);
extern int bnode_SetStat(struct bnode *abnode, int agoal);
+extern int bnode_CreatePidFile(struct bnode *abnode, struct bnode_proc *aproc, char *name);
+extern int bnode_DestroyPidFile(struct bnode *abnode, struct bnode_proc *aproc);