diff --git a/.idea/git-pusher.iml b/.idea/git-pusher.iml new file mode 100644 index 0000000..d0876a7 --- /dev/null +++ b/.idea/git-pusher.iml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 0000000..105ce2d --- /dev/null +++ b/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..0b790a6 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,7 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..4494764 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..7cf28a1 --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,154 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1728334389035 + + + + + + + + + + + + + + + + + + + + file://$PROJECT_DIR$/src/main.py + 43 + + + + + \ No newline at end of file diff --git a/git-pusher.service b/git-pusher.service index bbfb89e..3e6715e 100644 --- a/git-pusher.service +++ b/git-pusher.service @@ -5,7 +5,7 @@ After=network.target [Service] Type=simple WorkingDirectory= -ExecStart=poetry run git-pusher -w +ExecStart= run git-pusher -w CPUSchedulingPolicy=idle IOSchedulingClass=3 Restart=always diff --git a/install.sh b/install.sh index ff3fcb1..b9da92a 100755 --- a/install.sh +++ b/install.sh @@ -41,7 +41,9 @@ fi printf "WATCH_DIR = %s\n" "$WATCH_DIR" FNAME="git-pusher-$ID.service" -SERVICEFILE="$HOME/.config/systemd/user/$FNAME" +SERVICEPATH="$HOME/.config/systemd/user/" +mkdir -p "$SERVICEPATH" +SERVICEFILE="$SERVICEPATH/$FNAME" echo "FNAME = $FNAME" echo "SERVICEFILE = $SERVICEFILE" @@ -61,7 +63,8 @@ poetry install echo "Creating service file..." -cat git-pusher.service | sed 's??'`pwd`'?' | sed 's??'$WATCH_DIR'?' | tee -a "$SERVICEFILE" > /dev/null +touch "$SERVICEFILE" +cat git-pusher.service | sed 's??'`pwd`'?' | sed 's??'$WATCH_DIR'?' | sed 's??'$POETRY'?' | tee -a "$SERVICEFILE" > /dev/null echo "Reloading daemons..."