diff options
| author | Xe <me@christine.website> | 2022-04-28 02:31:05 +0000 |
|---|---|---|
| committer | Xe <me@christine.website> | 2022-04-28 02:31:05 +0000 |
| commit | 4d5379e7b0cc83d125d2c43bcd5507f11eba304d (patch) | |
| tree | 2156b2bb928ff0db346eff7eff8570ad20998b43 /run | |
| parent | d56721be6bac66729362384853761d6f962a5b4b (diff) | |
| download | x-4d5379e7b0cc83d125d2c43bcd5507f11eba304d.tar.xz x-4d5379e7b0cc83d125d2c43bcd5507f11eba304d.zip | |
start the nixification of robocadey-gpt2
Signed-off-by: Xe <me@christine.website>
Diffstat (limited to 'run')
| -rw-r--r-- | run/robocadey-gpt2.service.in | 10 | ||||
| -rw-r--r-- | run/robocadey-gpt2.socket | 9 |
2 files changed, 19 insertions, 0 deletions
diff --git a/run/robocadey-gpt2.service.in b/run/robocadey-gpt2.service.in new file mode 100644 index 0000000..988119a --- /dev/null +++ b/run/robocadey-gpt2.service.in @@ -0,0 +1,10 @@ +[Unit] +Description=Robo-Cadey GPT2 sidecar + +[Service] +ExecStart=@python@/bin/python3 @main@ +StateDirectory=xeserv.robocadey-gpt2 +CacheDirectory=xeserv.robocadey-gpt2 + +[Install] +WantedBy=multi-user.target diff --git a/run/robocadey-gpt2.socket b/run/robocadey-gpt2.socket new file mode 100644 index 0000000..f720f27 --- /dev/null +++ b/run/robocadey-gpt2.socket @@ -0,0 +1,9 @@ +[Unit] +Description=RoboCadey activation socket +PartOf=robocadey-gpt2.service + +[Socket] +ListenStream=/run/robocadey-gpt2.sock + +[Install] +WantedBy=sockets.target
\ No newline at end of file |
