User Tools

Site Tools


osxdaemons

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

osxdaemons [2015/11/10 18:10] (current)
Line 1: Line 1:
 +====== System Startup Daemons in OS X ======
 +The system by which daemons are launched at startup in Mac OS X, similar to init.d in Linux is explained at: [[http://​developer.apple.com/​documentation/​MacOSX/​Conceptual/​BPSystemStartup/​index.html]].
 +
 +to add a persistent network put your launcagent in:
 +<​code>​
 +/​System/​Library/​LaunchDaemons/​com.kandou.scripts.osx.addroute1.plist
 +</​code>​
 +
 +content:
 +<​code>​
 +<?xml version="​1.0"​ encoding="​UTF-8"?>​
 +<​!DOCTYPE plist PUBLIC "​-//​Apple//​DTD PLIST 1.0//​EN"​
 +"​http://​www.apple.com/​DTDs/​PropertyList-1.0.dtd">​
 +<plist version="​1.0">​
 +<​dict>​
 +  <​key>​Label</​key>​
 +    <​string>​com.kandou.scripts.osx.addroute1</​string>​
 +  <​key>​ProgramArguments</​key>​
 +  <​array>​
 +    <​string>/​sbin/​route</​string>​
 +    <​string>​add</​string>​
 +    <​string>​-net</​string>​
 +    <​string>​192.168.154.0/​24</​string>​
 +    <​string>​128.178.70.17</​string>​
 +  </​array>​
 +  <​key>​RunAtLoad</​key>​
 +    <​true/>​
 +</​dict>​
 +</​plist>​
 +
 +</​code>​
 +
  
osxdaemons.txt ยท Last modified: 2015/11/10 18:10 (external edit)