A launchd/com.folderpics.app.plist => launchd/com.folderpics.app.plist +16 -0
@@ 0,0 1,16 @@
+<?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.folderpics.app</string>
+ <key>KeepAlive</key><true/>
+ <key>ProgramArguments</key>
+ <array>
+ <string>/Users/t.shears/dev/folder_pics/launchd/folderpics_with_logs.sh</string>
+ </array>
+ <key>RunAtLoad</key><true/>
+ <key>ProcessType</key><string>Interactive</string>
+ <key>UserName</key><string>t.shears</string>
+
+</dict>
+</plist>
A launchd/folderpics_with_logs.sh => launchd/folderpics_with_logs.sh +5 -0
@@ 0,0 1,5 @@
+#!/bin/bash
+
+echo "loading folderpics" >> /tmp/folderpics.log
+
+/usr/local/bin/folderpics >> /tmp/folderpics.log