summaryrefslogtreecommitdiffstats
path: root/macbook
diff options
context:
space:
mode:
authorKyle Kaminski <kyle@xenomedia.com>2014-08-27 18:40:08 -0500
committerKyle Kaminski <kyle@xenomedia.com>2014-08-27 18:40:08 -0500
commit5be4eff6bf8739ce613921886c3dddb4088d03fb (patch)
treeeda6de2f59346444bd68e3001b53d5265e77bf75 /macbook
parent6ae7ecf02379eac1d159858c20654b4956a097d7 (diff)
downloadconfigs-5be4eff6bf8739ce613921886c3dddb4088d03fb.tar.gz
configs-5be4eff6bf8739ce613921886c3dddb4088d03fb.tar.bz2
configs-5be4eff6bf8739ce613921886c3dddb4088d03fb.zip
document LAMP stack on archlinux fused to macosx's partition
Diffstat (limited to 'macbook')
-rw-r--r--macbook/local.service7
-rw-r--r--macbook/macosx.txt15
2 files changed, 19 insertions, 3 deletions
diff --git a/macbook/local.service b/macbook/local.service
index ddf2555..bf4fba0 100644
--- a/macbook/local.service
+++ b/macbook/local.service
@@ -1,10 +1,13 @@
-# place to /etc/systemd/system/local.service
-
[Unit]
Description=Run local commands after boot
+ConditionFileIsExecutable=/usr/bin/local.sh
[Service]
+Type=oneshot
+# below is needed otherwise ExecStop would execute right after start and unmount
+RemainAfterExit=Yes
ExecStart=/usr/bin/local.sh
+ExecStop=/usr/bin/umount /mnt/mac-bind
[Install]
WantedBy=multi-user.target
diff --git a/macbook/macosx.txt b/macbook/macosx.txt
index 618cd3f..c799568 100644
--- a/macbook/macosx.txt
+++ b/macbook/macosx.txt
@@ -1,2 +1,15 @@
- let the env know about 'port' packages, here we care about include dir
-CFLAGS=-I/opt/local/include ./configure \ No newline at end of file
+CFLAGS=-I/opt/local/include ./configure
+
+[arch setup]
+- perms
+ -> http and git users/accounts are added to users group
+ -> 775 is used now for all website dirs
+ -> rest of the system uses kyle:users and 644 perms such as text editor, IDE, etc.
+
+- lamp stack
+ -> macosx's partition is used to store mysql db
+ -> mysqld.service has to be modified and --datadir= argument was added
+ -> custom local.service start before mysql end stop after mysql to mount
+ masqueraded/mapped user:group perms from macosx's system to archlinux
+