|
1 | 1 | //
|
2 |
| -// <!-- DaemonController --> |
| 2 | +// <!-- FFYDaemonController --> |
3 | 3 | // Based in *DaemonController* by [Max Howell](http://github.com/mxcl/playdar.prefpane).
|
4 | 4 | //
|
5 | 5 |
|
|
10 | 10 |
|
11 | 11 | // ## Installation
|
12 | 12 | //
|
13 |
| -// To install, just add the DaemonController.h and DaemonController.m files to your |
14 |
| -// project. Then, be shure to add DaemonController.m to your selected target. |
| 13 | +// To install, just add the FFYDaemonController.h and FFYDaemonController.m files to your |
| 14 | +// project. Then, be shure to add FFYDaemonController.m to your selected target. |
15 | 15 |
|
16 | 16 | // ## Usage
|
17 | 17 | //
|
18 |
| -// Just include the DaemonController.h file in your Class: |
| 18 | +// Just include the FFYDaemonController.h file in your Class: |
19 | 19 | //
|
20 |
| -// include "DaemonController.h"; |
| 20 | +// include "FFYDaemonController.h"; |
21 | 21 | //
|
22 | 22 | // Then, create an instance of it
|
23 | 23 | //
|
24 |
| -// DaemonController *daemonController = [[DaemonController alloc] |
| 24 | +// FFYDaemonController *daemonController = [[FFYDaemonController alloc] |
25 | 25 | // init];
|
26 | 26 | //
|
27 | 27 | // Set the launch path for the Daemon to watch:
|
|
53 | 53 | // [dct]: #section-Control_Tasks
|
54 | 54 |
|
55 | 55 | #import <sys/sysctl.h>
|
56 |
| -#import "DaemonController.h" |
| 56 | +#import "FFYDaemonController.h" |
57 | 57 |
|
58 | 58 | // ## Hidden Methods
|
59 | 59 | //
|
|
66 | 66 | //
|
67 | 67 | // The daemon task holds the active task, in case that the daemon was initialized by us.
|
68 | 68 | //
|
69 |
| -@interface DaemonController(/* Hidden Methods */) |
| 69 | +@interface FFYDaemonController(/* Hidden Methods */) |
70 | 70 | @property (nonatomic, retain) NSString *binaryName;
|
71 | 71 | @property (nonatomic, retain) NSTimer *pollTimer;
|
72 | 72 | @property (nonatomic, retain) NSTask *daemonTask;
|
@@ -155,7 +155,7 @@ static inline CFFileDescriptorRef kqueue_watch_pid(pid_t pid, id self) {
|
155 | 155 | //
|
156 | 156 | // There's three properties that are important in order to start, stop, run and monitor
|
157 | 157 | // a daemon.
|
158 |
| -@implementation DaemonController |
| 158 | +@implementation FFYDaemonController |
159 | 159 | // The launchPath is the daemon binary's absolute location.
|
160 | 160 | @synthesize launchPath;
|
161 | 161 | // If the daemon needs any special arguments to be started, this is the array where
|
|
0 commit comments