Преглед на файлове

minor fix and systemd config

Innokentiy Enikeev преди 8 години
родител
ревизия
37eb11a8db
променени са 3 файла, в които са добавени 16 реда и са изтрити 2 реда
  1. 1 0
      .gitignore
  2. 2 2
      chatikbot.lisp
  3. 13 0
      chatikbot.service

+ 1 - 0
.gitignore

@@ -3,6 +3,7 @@ settings.lisp
 chart.png
 db.sqlite*
 *.fasl
+*.lafsl
 *~
 .watchdog
 chatikbot.log*

+ 2 - 2
chatikbot.lisp

@@ -32,8 +32,8 @@
   (loop for update in (telegram-get-updates :offset (and *telegram-last-update*
                                                          (1+ *telegram-last-update*))
                                             :timeout 300)
-     do (setf *telegram-last-update*
-              (max *telegram-last-update* (aget "update_id" update)))
+     ;; do (setf *telegram-last-update*
+     ;;          (max *telegram-last-update* (aget "update_id" update)))
      do (handle-update update)))
 
 (defun handle-update (update)

+ 13 - 0
chatikbot.service

@@ -0,0 +1,13 @@
+[Unit]
+Description=Chatikbot Service
+After=network.target
+
+[Service]
+Type=simple
+User=enikesha
+WorkingDirectory=/home/enikesha/quicklisp/local-projects/chatikbot
+ExecStart=/home/enikesha/ccl/armcl --load start.lisp
+Restart=on-abort
+
+[Install]
+WantedBy=multi-user.target